refactor(dom) getDataFromStorage

This commit is contained in:
coderaiser 2014-05-26 02:30:34 -04:00
parent 5e25df43a9
commit 4217100628

View file

@ -1478,18 +1478,13 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
else {
Util.exec.parallel([
function(callback) {
Storage.get(nameData, function(data) {
Util.exec(callback, data);
});
Storage.get(nameData, callback);
},
function(callback) {
Storage.get(nameHash, function(hash) {
Util.exec(callback, hash);
});
Storage.get(nameHash, callback);
}
], callback);
}
});
};