diff --git a/lib/client/edit.js b/lib/client/edit.js index 93a53499..b42801a7 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -20,6 +20,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI Modelist, Msg, Events = DOM.Events, + RESTful = DOM.RESTful, Dialog = DOM.Dialog, Images = DOM.Images, Element, JSHintConfig, EditConfig, @@ -257,7 +258,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI var result = data || patch || Value, url = path + query; - DOM.RESTful.write(url, result , onSave); + RESTful.write(url, result , onSave); }, function(func) { zip(value, function(error, data) { if (error) @@ -437,7 +438,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI ret = Dialog.confirm(text + msg); if (ret) - DOM.RESTful.write(path, Value, onSave); + RESTful.write(path, Value, onSave); } }