Namespace: localStorage

jMod.API. localStorage

Shim for interacting with localStorage

Members

staticjMod.API.localStorage.storobject

Getter function that retrieves the localStorage object

Methods

staticjMod.API.localStorage.deleteValue(key)

F:/Projects/jMod/main/bin/jMod.full.js, line 4210
Name Type Description
key string name to be deleted

staticjMod.API.localStorage.getJSON(key, def)

F:/Projects/jMod/main/bin/jMod.full.js, line 4194
Name Type Description
key string name
def object optional default value to return if key does not exist

staticjMod.API.localStorage.getValue(key, def)

F:/Projects/jMod/main/bin/jMod.full.js, line 4158
Name Type Description
key string name
def string | boolean | number optional default value to return if key does not exist

staticjMod.API.localStorage.setJSON(key, value)

F:/Projects/jMod/main/bin/jMod.full.js, line 4177
Name Type Description
key string name
value object optional value to be set

staticjMod.API.localStorage.setValue(key, value)

F:/Projects/jMod/main/bin/jMod.full.js, line 4168
Name Type Description
key string name
value string | boolean | number optional value to be set