From 2562fc37f1cc2da44cfbdcd05078d5991e2e04ad Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 5 Dec 2014 07:37:16 -0500 Subject: [PATCH] refactor(client) rmLastSlash --- lib/client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/client.js b/lib/client.js index 687ff37d..70997175 100644 --- a/lib/client.js +++ b/lib/client.js @@ -259,7 +259,7 @@ var Util, DOM, CloudFunc, join; Listeners.initKeysPanel(); /* Устанавливаем кэш корневого каталога */ - dirPath = CloudFunc.rmLastSlash(dirPath) || '/'; + dirPath = CloudFunc.rmLastSlash(dirPath); Storage.get(dirPath, function(error, data) { if (!data) { @@ -292,7 +292,7 @@ var Util, DOM, CloudFunc, join; var panel = panelParam || Info.panel, NEEDREFRESH = true, path = DOM.getCurrentDirPath(panel), - notSlashlLink = CloudFunc.rmLastSlash(path) || '/'; + notSlashlLink = CloudFunc.rmLastSlash(path); CloudCmd.loadDir({ path : notSlashlLink, @@ -455,7 +455,7 @@ var Util, DOM, CloudFunc, join; if (path !== parentPath) { path = parentPath; - path = CloudFunc.rmLastSlash(path) || '/'; + path = CloudFunc.rmLastSlash(path); CloudCmd.loadDir({ path: path