Class Index | File Index

Classes


Class Storage


Defined in: storage.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates an instance of the Storage module
Method Summary
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.
Class Detail
Storage()
Creates an instance of the Storage module
See:
storage.js
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.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri May 06 2011 14:41:27 GMT+0100 (BST)