store

store

Source:

Object for persistently storing values on browser side using localStorage as main storage and fallback to cookies

Example

//saving value
store.set("lang", "lv");

//returns lv
store.get("lang");

//delete value
store.set("lang", nul);

Members

(static) get

Source:

Get persistantly stored value

Example
var lang = store.get("lang");

(static) set

Source:

Persistently store value

Example
store.set("lang", "lv");