SavedData Class
The SavedData functions use localStorage and sessionStorage, with a cookie fallback.
Methods
read
(
Mixed
static
-
name
Read the value of a saved variable
Parameters:
-
nameStringThe name of the variable
Returns:
Mixed:
The value (run through JSON.parse()) or null if it doesn't exist
remove
(
static
-
name
Remove a saved variable by name.
Parameters:
-
nameStringThe name of the value to remove
