Merge pull request #58 from michaelnoonan/patch-1

cookie and notify are not defined
revert-117-master
Gregory Pike 11 years ago
commit 61666ddedb

@ -37,6 +37,9 @@ angularLocalStorage.provider('localStorageService', function(){
this.$get = ['$rootScope', function($rootScope){
var prefix = this.prefix;
var cookie = this.cookie;
var notify = this.notify;
// If there is a prefix set in the config lets use that with an appended period for readability
if (prefix.substr(-1) !== '.') {
prefix = !!prefix ? prefix + '.' : '';