From a8c9af8af3c650e943a3a299d4c93b629e8df974 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 13 Oct 2014 08:44:03 -0400 Subject: [PATCH] refactor(edit) DOM.Storage -> Storage --- lib/client/edit.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);