Skip to content

Commit

Permalink
Merge pull request #12 from jcompagner/master
Browse files Browse the repository at this point in the history
Fix #10
  • Loading branch information
Gias Kay Lee committed Sep 17, 2013
2 parents 7add635 + 4ca9d63 commit f94e17c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ngStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@
_last$storage;

// (#8) `i < webStorage.length` is needed for IE9
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)));
for (var i = 0, k; i < webStorage.length; i++) {
if (k = webStorage.key(i)) {
'ngStorage-' === k.slice(0, 10) && ($storage[k.slice(10)] = angular.fromJson(webStorage.getItem(k)));
}
}

_last$storage = angular.copy($storage);
Expand Down

0 comments on commit f94e17c

Please sign in to comment.