diff --git a/lib/client/edit.js b/lib/client/edit.js index 9cb8d16d..ba628e3a 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -11,6 +11,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI LIBDIR = CloudCmd.LIBDIR, Info = DOM.CurrentInfo, Files = DOM.Files, + Storage = DOM.Storage, type = Util.type, exec = Util.exec, join = CloudCmd.join, @@ -296,7 +297,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI var value = Ace.getValue(); diff(value, function(patch) { - var isAllowed = DOM.Storage.isAllowed(); + var isAllowed = Storage.isAllowed(); exec.if(!isAllowed, callback, function(func) { DOM.checkStorageHash(path, function(error, equal) { @@ -317,7 +318,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI DOM.load.js(url, function(error) { var patch, - isAllowed = DOM.Storage.isAllowed(); + isAllowed = Storage.isAllowed(); if (error) { Dialog.alert(error);