diff --git a/src/browser/DomElement.js b/src/browser/DomElement.js index f8d31216..d14fda1c 100644 --- a/src/browser/DomElement.js +++ b/src/browser/DomElement.js @@ -130,6 +130,11 @@ var DomElement = new function() { new RegExp('\\s*' + cls + '\\s*'), ' ').trim(); }, + remove: function(el) { + if (el.parentNode) + el.parentNode.removeChild(el); + }, + removeChildren: function(el) { while (el.firstChild) el.removeChild(el.firstChild);