From 73dbba8f1737a752b841291490f2b4ca8c4748a3 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 2 Jul 2015 03:03:14 -0400 Subject: [PATCH] feature(dom) Images: add chaining --- lib/client/dom.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/client/dom.js b/lib/client/dom.js index 327569ee..3d5e4638 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -129,6 +129,8 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; this.hide = function() { var element = Images.get(); DOM.hide(element); + + return this; }; this.setProgress = function(value, title) { @@ -141,6 +143,8 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; if (title) element.title = title; } + + return this; }; this.clearProgress = function() { @@ -151,6 +155,8 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; element.setAttribute(DATA, ''); element.title = ''; } + + return this; }; },