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

@ -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,