Commit Graph

34 Commits (f7dd45e8e6c1465f8c3766d24f2b235ce90cf176)

Author SHA1 Message Date
Gregory Pike f7dd45e8e6 Merge pull request #116 from FeelgoodDE/master
Handling for explicit usage of cookie fallback
10 years ago
Sebastian Gronewold 570d7657c4 Reverted changes... 10 years ago
Sebastian Gronewold e7c465c898 Handling for explicit usage of cookie fallback
If the user explicitely set the storage type to cookie also the
getFromLlocalStorage and addToLocalStorage method should use the cookie
fallback.
10 years ago
Sebastian Gronewold 7ef86fb4a5 Reverted changes as they have already been pull requested 10 years ago
Beshoy Girgis 7ac1e52905 Check for document being in [0] key of $document
I have a factory that calls localStorageService.cookie.clearAll() which throws an error of `TypeError: Cannot read property 'split' of undefined`.  It turns out that this error is caused by $document having document be in `$document[0]`.  The proposed update solves my issue; thanks!
10 years ago
George Bonner 1c5cabf7ac Squashed commit of the following:
commit 8beff969457285fb85d10ca96205a3dc7a3d729f
Author: George Bonner <georgebonnr@gmail.com>
Date:   Mon May 12 16:31:42 2014 -0700

    typo fix

commit 8ba0a658b5e1831dfd3b8299327a2be50ecec0f2
Author: George Bonner <georgebonnr@gmail.com>
Date:   Mon May 12 16:19:35 2014 -0700

    Fix

commit 5d9c6c5afd4b9a56a03522e644c01d41c2a344eb
Author: George Bonner <georgebonnr@gmail.com>
Date:   Mon May 12 15:58:48 2014 -0700

    fix unhandled errors in chrome

    $window[storageType] would throw unhandled error in Chrome some cases as browserSupportsLocalStorage() had not yet been called.
10 years ago
John Burwell 9129451a27 - Adds the deriveQualifiedKey and deriveKey methods to ca;culate the key
with the prefix -- supporting deterministic internal operation and
loosely coupled white box testing
- Adds tests for remove, deriveKey, and key replacement
- Splits the add tests into 3 scenerios -- add JSON, add string, and add
  integer
- Remove the test stubs for get, set, and clearAll to properly test the
  underlying methods
10 years ago
Gregory Pike 2f7860a99c Fixed browser local storage support bug
Also repaired Grunt setup
10 years ago
J. Harshbarger 37dcad1da5 localStorageService.bind supports default set of keys 10 years ago
J. Harshbarger bdbc6e77b3 jshint and uglify 10 years ago
J. Harshbarger be61202e24 Added localStorageService.bind 10 years ago
Gregory Pike d699266785 Updated for tests and linting 10 years ago
Gregory Pike 7884dbd8ef Fix for error in iPhone 10 years ago
Gregory Pike 92323fa832 Return storage type, code formatting, and uglification 10 years ago
Gregory Pike 082df22dcc Merge pull request #72 from AdamQuadmon/fixCookieNotDefined
Fix Cookie not Defined issues
10 years ago
Gregory Pike 851c514005 Merge pull request #71 from paulo-neves/master
add sessionStorage
10 years ago
Luciano Amodio 62475e2033 Fix Cookie not Defined issues 10 years ago
paulo.neves 336e71d7af add sessionstorage to localStorage provider. 10 years ago
paulo.neves 4f71583bd1 add sessionstorage to localStorage provider. 10 years ago
Luciano Amodio 717f1d1204 Added setCookieDomain option
now is possible to set a custom domain for the cookie.
10 years ago
Romain Sertelon 6858ddc4df Injects $window and $document 10 years ago
Romain Sertelon 91e9e0bec9 Use AngularJS wrappers
Fixes #54 by using  and
10 years ago
Gregory Pike 5d3d56b43b Updated documentation 11 years ago
Juraj Michalek 976c42e83a add missing var 11 years ago
prrt714 e87b0171f9 * Make browserSupportsLocalStorage immediate function in order to check this only once
* Comment on configuring prefix
11 years ago
Michael Noonan b0c346b76c cookie and notify are not defined
When trying to remove a cookie I noticed that the cookie wasn't being removed. Upon further inspection I saw that the function was relying on the local "cookie" variable which wasn't copied across from the initialization code. Same seems to be true for "notify".

Cookies can now be removed happily.
11 years ago
Matthew Wickman 04b3c77257 Merge branch 'master' of github.com:grevory/angular-local-storage into regex_clear
Conflicts:
	angular-local-storage.js
11 years ago
Gregory Pike 91271179e7 Fixed JS error from merge and changed spacing 11 years ago
Gregory Pike 3dee44cac3 Started fixing spacing 11 years ago
Gregory Pike 199031e798 Resolved merge conflict 11 years ago
Alex Gorbatchev c0e86dc1bd Fixes `QUOTA_EXCEEDED_ERR` error is private Safari window. 11 years ago
Marques Woodson 2bff9d3e3c Configured the service to a provider type for more configurability. 11 years ago
Matthew Wickman 697e340738 Merge branch 'master' of github.com:grevory/angular-local-storage into regex_clear 11 years ago
Eddie Monge 4079d517a0 rename file to be more angular descriptive 11 years ago