diff --git a/lib/client/dom.js b/lib/client/dom.js index e639c37c..285cf612 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -1372,8 +1372,12 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; * @param pChild * @param element */ - this.remove = function(pChild, element) { - return (element || document.body).removeChild(pChild); + this.remove = function(child, element) { + var parent = element || document.body; + + parent.removeChild(child); + + return DOM; }; /**