awa.storage Class
/var/www/azaleahealth.com/branches/docs/source_repo/awa/resources/apps/js/awa/storage.js:14
Methods
get
-
key -
prefix
get a key/value pair from local storage update an item in localStorage
Parameters:
-
keyStringKey of property
-
prefixStringPrefix to key of property
Returns:
set value or null
getObject
-
key -
prefix
Get a key/value pair from local storage NOTE: This method uses JSON.parse() to unserialize keys stored in local storage. If a value is not stored as valid JSON, this method will throw an error.
Parameters:
-
keyStringKey of property
-
prefixStringPrefix to key of property
Returns:
set value or null
remove
-
key -
prefix
remove an item from localStorage
Parameters:
-
keyStringKey of property
-
prefixStringPrefix to key of property
Returns:
set
-
key -
value -
prefix
set a key/value pair in local storage update an item in localStorage
Parameters:
-
keyStringKey of property
-
valueMixedValue of property
-
prefixStringPrefix to key of property
Returns:
setObject
-
key -
value -
prefix
Set a key/value pair in local storage as a JSON string. NOTE: If the value has a toJSON method, that method will be used to serialize this value. This may cause unexpected results when getObject is used to get the value.
Parameters:
-
keyStringKey of property
-
valueMixedValue of property
-
prefixStringPrefix to key of property
Returns:
update
-
key -
value
update an item in localStorage
Parameters:
-
keyStringKey of property
-
valueMixedValue of propert