Darlan Alves
04df295c81
Fix returned value when the previously store value was null
11 years ago
grevory
4b74562d85
Merge pull request #22 from mhalttu/master
...
Fix: You can't set a cookie after you have removed another cookie
11 years ago
grevory
d386b940b4
Merge pull request #26 from CaryLandholt/master
...
Add IIFE to avoid introducing global variables
11 years ago
Gregory Pike
fdc1bab863
Fixed notices from JSLint
11 years ago
Cary Landholt
cf39b3c339
Add IIFE to avoid introducing global variables
...
Without the closure provided by the IIFE, angularLocalStorage is a global variable.
The IIFE prevents global variable introduction.
11 years ago
Markus Halttunen
69de00f350
Fixed a problem where you couldn't set a cookie after you had removed another one. The problem is that we shouldn't modify the expiry field of the shared cookie object. Now we simply set the expiry date of the removed cookie without touching the cookie object itself.
11 years ago
Joshua Petitt
6b7404ad07
Added getKeysForLocalStorage method.
11 years ago
Gihan S
f6e4ea9e5b
Added javascript array auto stringyfy and reverse when adding and getting from localstorage.
11 years ago
grevory
9d44d538c0
Merge pull request #19 from nmehta6/master
...
Allow the prefix value to be overwritten
11 years ago
Nachiket Mehta
25209ce489
Changed constant to value
...
Changing angularLocalStorage.constant('prefix', 'ls') to angularLocalStorage.value('prefix', 'ls'). Now, this prefix can be overwritten by the consuming app.
11 years ago
Gregory Pike
bf333b14f2
Remove unnecessary JSON methods
11 years ago
Nachiket Mehta
bd5bc4a4ae
Detecting if the value being stored is an object. using angular's fronJson and toJson methods to parse it.
...
This saves the user from having to call the stringyfyJson() and parseJson() before getting and setting to the local storage. Those functions can also be now ported over to use angular.toJson and angular.fromJson(). That change is not included in this commit.
11 years ago
Gregory Pike
45eb25cea9
Convert undefined values to null
11 years ago
Jason Jarrett
8f8e94e280
Allow storage of falsey values
11 years ago
geun
cb8200f956
fixed cookie error
11 years ago
grevory
30f6fbe894
Merge pull request #12 from Sgoettschkes/api_set
...
[WIP] Changing API from add to set
11 years ago
defectus
a0ec531f46
cookies made persistent
11 years ago
Sebastian Goettschkes
98e5dcccec
Adding set to API for both localStorage and cookie
11 years ago
lucuma
035a10b715
Update localStorageModule.js
...
Change notifications to be consistent with original code, lowercase.
11 years ago
lucuma
255fafe769
Update localStorageModule.js
...
Configurable notifications of add and remove items.
11 years ago
Gregory Pike
fa727e840c
Merged cookies fix with errors fix
11 years ago
Gregory Pike
7457fc206d
Cookies work as fallback
11 years ago
Anim Yeboah
a6d887c398
Fix getting message on error
...
JavaScript error thrown has no property 'Description', should be
'message'.
See
https://developer.mozilla.org/en/docs/JavaScript/Reference/Global_Object
s/Error
11 years ago
Julien Bouquillon
aade0378f8
auto cookie fallback, fix #5
11 years ago
Gregory Pike
9b7415dfa2
Support for objects
11 years ago
grevory
4dc2661ec8
Cookie fallback support
12 years ago
grevory
9b801b8ec7
Added demo and fixed bugs
12 years ago
Gregory Pike
a8769636a2
Initial commit
12 years ago