Skip to content

Commit

Permalink
Changing the format as requested
Browse files Browse the repository at this point in the history
  • Loading branch information
dcendents committed Aug 8, 2013
1 parent 14b87a2 commit 8b7a7be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ngStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@
},
_last$storage;

for (var i = 0, k; i < webStorage.length; i++) {
k = webStorage.key(i);
for (var i = 0, k; i < webStorage.length && (k = webStorage.key(i)); i++) {
'ngStorage-' === k.slice(0, 10) && ($storage[k.slice(10)] = angular.fromJson(webStorage.getItem(k)));
}

Expand Down

0 comments on commit 8b7a7be

Please sign in to comment.