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:
-
name
StringThe 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:
-
name
StringThe name of the value to remove