extISessionStorage

Interface representing a simple storage system

Methods

has(aName)

Determines if a storage item exists with the given name.

Parameters

aName The name of an item

Returns

true if an item exists with the given name, false otherwise.

set(aName, aValue)

Sets the value of a storage item with the given name.

Parameters

aName The name of an item
aValue The value to assign to the item

get(aName, aDefaultValue)

Gets the value of a storage item with the given name. Returns a
default value if the item does not exist.

Parameters

aName The name of an item
aDefaultValue The value to return if no item exists with the given name

Returns

value of the item or the given default value if no item exists with the given name.

Attributes

events

The events object for the storage
supports: “change”