Class Storage
Defined in: storage.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Storage()
Creates an instance of the Storage module
|
Method Attributes | Method Name and Description |
---|---|
Check for HTML5 LocalStorage support.
|
|
delete(key)
Remove item from LocalStorage.
|
|
load(key)
Load value from LocalStorage using key.
|
|
save(key, value)
Save key value pair to LocalStorage.
|
Method Detail
{Boolean}
checkSupport()
Check for HTML5 LocalStorage support.
Check for HTML5 LocalStorage from http://diveintohtml5.org/storage.html
- Returns:
- {Boolean} Boolean denoting HTML5 LocalStorage support.
delete(key)
Remove item from LocalStorage.
- Parameters:
- {String} key
- Key to delete from LocalStorage.
{String}
load(key)
Load value from LocalStorage using key.
- Parameters:
- {String} key
- Key to load from LocalStorage.
- Returns:
- {String} Value returned from LocalStorage.
save(key, value)
Save key value pair to LocalStorage.
- Parameters:
- {String} key
- Key to use for LocalStorage.
- {String} value
- Value to store in LocalStorage.