mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 10:09:04 +00:00
feature(storage) callback(ret) -> callback(error, ret)
This commit is contained in:
parent
b08aa7be7c
commit
0e9e0c227c
1 changed files with 3 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ var Util, DOM;
|
|||
if (ret)
|
||||
localStorage.removeItem(item);
|
||||
|
||||
Util.exec(callback, ret);
|
||||
Util.exec(callback, null, ret);
|
||||
|
||||
return this;
|
||||
};
|
||||
|
|
@ -69,7 +69,7 @@ var Util, DOM;
|
|||
if (Allowed && name)
|
||||
localStorage.setItem(name, str || data);
|
||||
|
||||
Util.exec(callback, ret);
|
||||
Util.exec(callback, null, ret);
|
||||
|
||||
return this;
|
||||
},
|
||||
|
|
@ -93,7 +93,7 @@ var Util, DOM;
|
|||
if (ret)
|
||||
localStorage.clear();
|
||||
|
||||
Util.exec(callback, ret);
|
||||
Util.exec(callback, null, ret);
|
||||
|
||||
return this;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue