mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-02 04:33:09 +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
|
|
@ -272,7 +272,7 @@ var Util, DOM, CloudFunc;
|
|||
|
||||
dirPath = CloudFunc.rmLastSlash(dirPath) || '/';
|
||||
|
||||
Storage.get(dirPath, function(data) {
|
||||
Storage.get(dirPath, function(error, data) {
|
||||
if (!data) {
|
||||
data = getJSONfromFileTable();
|
||||
Storage.set(dirPath, data);
|
||||
|
|
@ -380,7 +380,7 @@ var Util, DOM, CloudFunc;
|
|||
|
||||
Util.log ('reading dir: "' + cleanPath + '";');
|
||||
|
||||
Storage.get(cleanPath, function(json) {
|
||||
Storage.get(cleanPath, function(error, json) {
|
||||
var RESTful = DOM.RESTful,
|
||||
obj = Util.parseJSON(json),
|
||||
isRefresh = options.refresh,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue