From 055d4ca2d129a6e2d8d8cd6f01221c9af8f8ac52 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 20 Sep 2013 14:58:00 +0000 Subject: [PATCH] feature(dom) DOMTreeProto: add DOM --- lib/client/dom.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/client/dom.js b/lib/client/dom.js index cb09fc96..1a961cf9 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -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'); }; },