From 956ca1dd6274ad527c279e5c1ebbc8133607e7b5 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 14 Feb 2014 10:48:57 -0500 Subject: [PATCH] refactor(client) refresh --- lib/client.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/client.js b/lib/client.js index 702e89aa..1929fbd9 100644 --- a/lib/client.js +++ b/lib/client.js @@ -312,15 +312,15 @@ var Util, DOM, CloudFunc; }); }; - this.refresh = function(pCurrent) { - var lNEEDREFRESH = true, - lPanel = pCurrent && pCurrent.parentElement, - lPath = DOM.getCurrentDirPath(lPanel), - lLink = CloudFunc.FS + lPath, - lNotSlashlLink = CloudFunc.rmLastSlash(lLink), - lLoad = CloudCmd.loadDir(lNotSlashlLink, lNEEDREFRESH); + this.refresh = function(current) { + var NEEDREFRESH = true, + panel = current && current.parentElement, + path = DOM.getCurrentDirPath(panel), + link = CloudFunc.FS + path, + notSlashlLink = CloudFunc.rmLastSlash(link), + load = CloudCmd.loadDir(notSlashlLink, NEEDREFRESH); - lLoad(); + load(); }; /**