fix(edit) set Value befor onSave

This commit is contained in:
coderaiser 2013-11-20 08:07:03 +00:00
parent 0894835e6c
commit 6e3cc80b00

View file

@ -127,6 +127,8 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
Util.ifExec(!isDiff, function(patch) {
var query;
Value = lValue;
if (Util.isString(patch)) {
lValue = patch;
query = '?patch';
@ -193,7 +195,6 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
msg = '\nShould I save file anyway?';
if (!isError) {
Value = Ace.getValue();
Edit.showMessage(text);
DOM.saveDataToCache(path, Value);
} else {