diff --git a/angular-local-storage.js b/angular-local-storage.js index 4556762..15a31c8 100644 --- a/angular-local-storage.js +++ b/angular-local-storage.js @@ -295,7 +295,7 @@ angularLocalStorage.provider('localStorageService', function(){ thisCookie = thisCookie.substring(1, thisCookie.length); } - key = thisCookie.substring(prefixLength, thisCookie.indexOf('=')); + var key = thisCookie.substring(prefixLength, thisCookie.indexOf('=')); removeFromCookies(key); } };