Class Index | File Index

Classes


Namespace CAAT.Module.Storage.LocalStorage


Defined in: LocalStorage.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
CAAT.Module.Storage.LocalStorage.load(key, defValue)
Retrieve a value from local storage.
<static>  
CAAT.Module.Storage.LocalStorage.remove(key)
Removes a value stored in local storage.
<static>  
CAAT.Module.Storage.LocalStorage.save(key, data)
Stores an object in local storage.
Namespace Detail
CAAT.Module.Storage.LocalStorage
Method Detail
<static> {object} CAAT.Module.Storage.LocalStorage.load(key, defValue)
Retrieve a value from local storage.
Parameters:
key
{string} the key to retrieve.
defValue
Returns:
{object} object stored under the key parameter.

<static> CAAT.Module.Storage.LocalStorage.remove(key)
Removes a value stored in local storage.
Parameters:
key
{string}
Returns:
this

<static> CAAT.Module.Storage.LocalStorage.save(key, data)
Stores an object in local storage. The data will be saved as JSON.stringify.
Parameters:
key
{string} key to store data under.
data
{object} an object.
Returns:
this

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:19 GMT-0700 (PDT)