feature(storage) get: callback(data) -> callback(error, data)

This commit is contained in:
coderaiser 2014-06-03 07:23:40 -04:00
parent ce0ce29d6d
commit 243e1f12bf
7 changed files with 11 additions and 12 deletions

View file

@ -104,7 +104,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
Session.setUndoManager(new UndoManager());
}, function(callback) {
Info.getData(function(data) {
Info.getData(function(error, data) {
Value = data;
if (isJS && Session.getUseWorker())
@ -310,7 +310,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
}, function(func) {
var path = Info.path;
DOM.getDataFromStorage(path, function(data) {
DOM.getDataFromStorage(path, function(error, data) {
if (data)
Value = data;