mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(dom) remove
This commit is contained in:
parent
2bd64f98fc
commit
eb68274d2c
1 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue