fix(edit) add data check condition

This commit is contained in:
coderaiser 2013-12-02 16:45:39 +00:00
parent 63eda23f1a
commit 8cbc2bcd12

View file

@ -211,7 +211,9 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
var path = DOM.getCurrentPath();
DOM.getDataFromStorage(path, function(data) {
Value = data;
if (data)
Value = data;
callback();
});
});