refactor(dom) remove

This commit is contained in:
coderaiser 2014-06-10 15:47:19 -04:00
parent 2bd64f98fc
commit eb68274d2c

View file

@ -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;
};
/**