refactor(buffer) Util.json -> json

This commit is contained in:
coderaiser 2015-02-05 10:03:58 -05:00
parent 01339fd31a
commit aed8c978d2

View file

@ -5,13 +5,14 @@ var Util, DOM;
var DOMProto = Object.getPrototypeOf(DOM);
DOMProto.Buffer = new BufferProto();
DOMProto.Buffer = new BufferProto(Util, DOM);
function BufferProto() {
function BufferProto(Util, DOM) {
var Storage = DOM.Storage,
Dialog = DOM.Dialog,
Files = DOM.Files,
Info = DOM.CurrentInfo,
json = Util.json,
CLASS = 'cut-file',
@ -118,7 +119,7 @@ var Util, DOM;
if (error) {
DOM.Dialog.alert(error);
} else if (cp) {
data = Util.json.parse(cp);
data = json.parse(cp);
data.to = path;
if (data.from === path)
@ -127,7 +128,7 @@ var Util, DOM;
DOM.copyFiles(data);
} else if (ct) {
data = Util.json.parse(ct);
data = json.parse(ct);
data.to = path;
if (data.from === path)