feature(dom) DOMTreeProto: add DOM

This commit is contained in:
coderaiser 2013-09-20 14:58:00 +00:00
parent 4ad0cd79bd
commit 055d4ca2d1

View file

@ -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');
};
},