From d276b76e4be881f45cd70b7d414c13a403e81c3b Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 16 Jan 2013 10:46:21 -0500 Subject: [PATCH] refactored --- lib/client.js | 12 ++++++------ lib/util.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/client.js b/lib/client.js index 8b763934..47adfd9f 100644 --- a/lib/client.js +++ b/lib/client.js @@ -452,15 +452,15 @@ CloudCmd._changeLinks = function(pPanelID){ * in Chrome (HTML5) */ lOnDragStart_f = function(pEvent){ - var lElement = pEvent.target, - lLink = lElement.href, - lName = lElement.textContent, + var lElement = pEvent.target, + lLink = lElement.href, + lName = lElement.textContent, /* if it's directory - adding json extension */ - lType = lElement.parentElement.nextSibling; + lType = lElement.parentElement.nextSibling; if(lType && lType.textContent === ''){ - lLink = lLink.replace(lNoJS_s,''); - lName += '.json'; + lLink = lLink.replace(lNoJS_s,''); + lName += '.json'; } pEvent.dataTransfer.setData("DownloadURL", diff --git a/lib/util.js b/lib/util.js index 7dd605ed..75d1f11e 100644 --- a/lib/util.js +++ b/lib/util.js @@ -420,7 +420,7 @@ Util = exports || {}; var lRet; if(pCondition) - Util.exec(pCallBack); + Util.exec(pCallBack, pCondition); else Util.exec(pFunc, pCallBack);