fix(localStorageProvider): issue #165

master
Ariel Mashraki 10 years ago
parent 1b4fd8d451
commit e88c4f5f5f

@ -30,11 +30,13 @@ angularLocalStorage.provider('localStorageService', function() {
// Setter for the prefix // Setter for the prefix
this.setPrefix = function(prefix) { this.setPrefix = function(prefix) {
this.prefix = prefix; this.prefix = prefix;
return this;
}; };
// Setter for the storageType // Setter for the storageType
this.setStorageType = function(storageType) { this.setStorageType = function(storageType) {
this.storageType = storageType; this.storageType = storageType;
return this;
}; };
// Setter for cookie config // Setter for cookie config
@ -43,11 +45,13 @@ angularLocalStorage.provider('localStorageService', function() {
expiry: exp, expiry: exp,
path: path path: path
}; };
return this;
}; };
// Setter for cookie domain // Setter for cookie domain
this.setStorageCookieDomain = function(domain) { this.setStorageCookieDomain = function(domain) {
this.cookie.domain = domain; this.cookie.domain = domain;
return this;
}; };
// Setter for notification config // Setter for notification config
@ -57,6 +61,7 @@ angularLocalStorage.provider('localStorageService', function() {
setItem: itemSet, setItem: itemSet,
removeItem: itemRemove removeItem: itemRemove
}; };
return this;
}; };
this.$get = ['$rootScope', '$window', '$document', '$parse', function($rootScope, $window, $document, $parse) { this.$get = ['$rootScope', '$window', '$document', '$parse', function($rootScope, $window, $document, $parse) {