mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(dom) DOMTreeProto: add DOM
This commit is contained in:
parent
4ad0cd79bd
commit
055d4ca2d1
1 changed files with 3 additions and 2 deletions
|
|
@ -216,6 +216,7 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
},
|
||||
|
||||
DOMTreeProto = function() {
|
||||
var DOM = this;
|
||||
/**
|
||||
* add class to element
|
||||
*
|
||||
|
|
@ -303,11 +304,11 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
* @param pElement
|
||||
*/
|
||||
this.hide = function(pElement) {
|
||||
return this.addClass(pElement, 'hidden');
|
||||
return DOM.addClass(pElement, 'hidden');
|
||||
};
|
||||
|
||||
this.show = function(pElement) {
|
||||
this.removeClass(pElement, 'hidden');
|
||||
return DOM.removeClass(pElement, 'hidden');
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue