From 0e9e0c227c490f2428c199bd74ee39abd01d8267 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 3 Jun 2014 09:14:01 -0400 Subject: [PATCH] feature(storage) callback(ret) -> callback(error, ret) --- lib/client/storage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/client/storage.js b/lib/client/storage.js index 9e02b033..563a9b6b 100644 --- a/lib/client/storage.js +++ b/lib/client/storage.js @@ -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; };