Commit Graph

55 Commits (3a4436f5afc53d1db6cc8408ebd1959ad95ed179)
 

Author SHA1 Message Date
Eddie Monge 3a4436f5af Add Grunt to automate testing and linting. Add Karma to run tests 11 years ago
grevory 10f23f21ab Merge pull request #34 from eddiemonge/gitfiles
add git files to the repo
11 years ago
Eddie Monge edacb75732 add git files to the repo 11 years ago
grevory 0c1b8e8e19 Merge pull request #32 from eddiemonge/demo
move demos to their own folder to keep repo cleaner
11 years ago
grevory ce358fc99b Merge pull request #31 from eddiemonge/package
add package.json file to manage dependencies
11 years ago
grevory 401584e657 Merge pull request #30 from eddiemonge/bower
Add bower.json file
11 years ago
Eddie Monge 8e44da5b4b move demos to their own folder to keep repo cleaner 11 years ago
Eddie Monge 6b62d711ea add package.json file to manage dependencies 11 years ago
Eddie Monge 04801ee5d6 Add bower.json file 11 years ago
Gregory Pike 5679c279a5 Changed license to MIT 11 years ago
grevory a9d180c607 Merge pull request #27 from darlanalves/master
Fix returned value when the previously store value was null.
11 years ago
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
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
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
grevory e0fa47e663 Merge pull request #6 from revolunet/master
auto cookies 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
Gregory Pike d91456c0c5 Adding license 11 years ago
Gregory Pike ce9e47e430 Added a favourite sport just for fun 11 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