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
grevory
db5638ad57
Merge pull request #21 from jpmec/master
...
Added getKeysForLocalStorage method.
11 years ago
Joshua Petitt
6b7404ad07
Added getKeysForLocalStorage method.
11 years ago
grevory
6df74ff7ae
Merge pull request #20 from gihanshp/master
...
Added javascript array to string and string to array conversion
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
grevory
335676452a
Merge pull request #16 from nmehta6/master
...
detecting if Json needs to be parsed or stringified as part of addToLocalStorage() and getFromLocalStorage()
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
grevory
9bb76366d4
Merge pull request #15 from staxmanade/master
...
Allow storing falsey values
11 years ago
Jason Jarrett
8f8e94e280
Allow storage of falsey values
11 years ago
grevory
9b6201ff2d
Merge pull request #14 from geun/master
...
fix cookie error
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
grevory
a5a3416f48
Merge pull request #13 from defectus/master
...
Cookies made peristent
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
grevory
184c26fb5c
Merge pull request #10 from sbosell/master
...
Notification broadcasts on setItem and removeItem
12 years ago
lucuma
035a10b715
Update localStorageModule.js
...
Change notifications to be consistent with original code, lowercase.
12 years ago
lucuma
255fafe769
Update localStorageModule.js
...
Configurable notifications of add and remove items.
12 years ago
Gregory Pike
fa727e840c
Merged cookies fix with errors fix
12 years ago
Gregory Pike
7457fc206d
Cookies work as fallback
12 years ago
grevory
e0fa47e663
Merge pull request #6 from revolunet/master
...
auto cookies fallback
12 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
12 years ago
Julien Bouquillon
aade0378f8
auto cookie fallback, fix #5
12 years ago
Gregory Pike
9b7415dfa2
Support for objects
12 years ago
Gregory Pike
d91456c0c5
Adding license
12 years ago
Gregory Pike
ce9e47e430
Added a favourite sport just for fun
12 years ago
grevory
60633b88f2
Add link to demo in readme
12 years ago
grevory
4dc2661ec8
Cookie fallback support
12 years ago
grevory
53672c1e23
Updated Read Me
12 years ago
grevory
9b801b8ec7
Added demo and fixed bugs
12 years ago
grevory
f3f82b5d3b
Merge pull request #1 from maxrabin/readme-fixup
...
Code example fixup in README.md
12 years ago
Max Rabin
53edc8f2cc
Javascript syntax highlighting
12 years ago
Max Rabin
90f9fbdb3e
fix readme spacing so it is crecognized as code
12 years ago
Gregory Pike
a8769636a2
Initial commit
12 years ago
grevory
a5717333c5
Initial commit
12 years ago