From f528c351facb0a86f3ea7182bd63b7b62e21eba3 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 19 Nov 2013 12:23:54 +0000 Subject: [PATCH] refactor(dom) getCurrentData --- lib/client/dom.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/client/dom.js b/lib/client/dom.js index 967a8e5b..fbd2c919 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -1473,6 +1473,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; this.getCurrentData = function(pCallBack, pCurrentFile) { var lParams, lCurrentFile = pCurrentFile ? pCurrentFile : this.getCurrentFile(), + lPath = DOM.getCurrentPath(lCurrentFile), lFunc = function(pData) { var lExt = '.json', @@ -1499,9 +1500,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; error : pCallBack.error }; - var lName = DOM.getCurrentName(lCurrentFile); - - DOM.getDataFromCache(lName, function(data) { + DOM.getDataFromCache(lPath, function(data) { if (data) lFunc(data); else