assets/js/romo/base.js in romo-0.20.9 vs assets/js/romo/base.js in romo-0.20.10
- old
+ new
@@ -373,9 +373,18 @@
}
return elem;
});
}
+Romo.prototype.removeChildren = function(parentElems) {
+ return Romo.array(parentElems).map(function(parentElem) {
+ Romo.children(parentElem).forEach(function(childElem) {
+ parentElem.removeChild(childElem);
+ });
+ return parentElem;
+ });
+}
+
Romo.prototype.replace = function(elem, replacementElem) {
elem.parentNode.replaceChild(replacementElem, elem);
return replacementElem;
}