mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
feature(storage) get: callback(data) -> callback(error, data)
This commit is contained in:
parent
ce0ce29d6d
commit
243e1f12bf
7 changed files with 11 additions and 12 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue