diff --git a/lib/client/dom.js b/lib/client/dom.js index f4fbc556..c1735599 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -758,13 +758,15 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; RESTful.read(path, func); } else { DOM.checkStorageHash(path, function(error, equal, hashNew) { - Util.exec.if(!error && equal, function() { - DOM.getDataFromStorage(path, callback); - }, function() { - hash = hashNew; - RESTful.read(path, func); - }); - }); + if (error) { + callback(error); + } else if (equal) { + DOM.getDataFromStorage(path, callback); + } else { + hash = hashNew; + RESTful.read(path, func); + } + }); } };