Classes

SessionStorage

Implementation of the Storage interface that relies on the native sessionStorage DOM storage for storing its entries.

StorageIterator

Implementation of the iterator protocol and the iterable protocol for DOM storage keys.

SessionStorage 

Implementation of the Storage interface that relies on the native sessionStorage DOM storage for storing its entries.

Kind: global class


new SessionStorage(window) 

Initializes the session storage.

Param Type
window Window

sessionStorage._storage : Storage 

The DOM storage providing the actual storage of the entries.

Kind: instance property of SessionStorage


sessionStorage.init() 

Kind: instance method of SessionStorage


sessionStorage.has() 

Kind: instance method of SessionStorage


sessionStorage.get() 

Kind: instance method of SessionStorage


sessionStorage.set() 

Kind: instance method of SessionStorage


sessionStorage.delete() 

Kind: instance method of SessionStorage


sessionStorage.clear() 

Kind: instance method of SessionStorage


sessionStorage.keys() 

Kind: instance method of SessionStorage


sessionStorage.size() 

Kind: instance method of SessionStorage


sessionStorage._deleteOldestEntry() 

Deletes the oldest entry in this storage.

Kind: instance method of SessionStorage


StorageIterator 

Implementation of the iterator protocol and the iterable protocol for DOM storage keys.

Kind: global class
See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols


new StorageIterator(storage) 

Initializes the DOM storage iterator.

Param Type Description
storage Storage The DOM storage to iterate through.

storageIterator._storage : Storage 

The DOM storage being iterated.

Kind: instance property of StorageIterator


storageIterator._currentKeyIndex : number 

The current index of the DOM storage key this iterator will return next.

Kind: instance property of StorageIterator


storageIterator.next() ⇒ Object 

Iterates to the next item. This method implements the iterator protocol.

Kind: instance method of StorageIterator
Returns: Object - The next value in the sequence and whether the iterator is done iterating through the values.