From acf6e2c63366f019a081b70d12a541f725098c2b Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 20 Nov 2013 09:45:15 +0000 Subject: [PATCH] feature(dom) getDataFromStorage: add isDir condition --- lib/client/dom.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/client/dom.js b/lib/client/dom.js index c109993a..a2b463bc 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -1763,9 +1763,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; var hash, nameHash = name + '-hash', nameData = name + '-data', - allowed = config.localStorage; + allowed = config.localStorage, + isDir = DOM.isCurrentIsDir(); - if (!allowed) + if (!allowed || isDir) Util.exec(callback); else { hash = Storage.get(name + '-hash');