mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
refactor(buffer) Util.json -> json
This commit is contained in:
parent
01339fd31a
commit
aed8c978d2
1 changed files with 5 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue