goog.storage.mechanism.Mechanism | |
goog.storage.mechanism.IterableMechanism | goog.storage.mechanism.Mechanism |
goog.storage.mechanism.IEUserData | goog.storage.mechanism.IterableMechanism |
storageKey
: string
The key (store name) to store the data under.
|
opt_storageNodeId
: string=
The ID of the associated HTML element,
one will be created if not provided.
|
![]()
No description.
|
code » | |
![]()
No description.
|
code » | |
![]()
No description.
|
code » | |
![]()
No description.
|
code » | |
Returns the storage node.
Returns: !Element
Storage DOM Element.
|
code » | |
Determines whether or not the mechanism is available.
Returns: boolean
True if the mechanism is available.
|
code » | |
![]()
Loads the underlying storage node to the state we saved it to before.
|
code » | |
![]()
No description.
|
code » | |
![]()
Saves the underlying storage node.
|
code » | |
![]()
No description.
|
code » |
Returns an iterator that iterates over the elements in the storage. Will
throw goog.iter.StopIteration after the last element.
Arguments:
Returns: !goog.iter.Iterator
The iterator.
|
code » | ||
![]()
Remove all key-value pairs.
Could be overridden in a subclass, as the default implementation is not very
efficient - it iterates over all keys.
|
code » | ||
Get the number of stored key-value pairs.
Could be overridden in a subclass, as the default implementation is not very
efficient - it iterates over all keys.
Returns: number
Number of stored elements.
|
code » |
![]()
No description.
|
Code » |
Decodes a dot-encoded and character-prefixed key.
See encodeKey_ documentation for encoding details.
|
code » | |
Encodes anything other than [-a-zA-Z0-9_] using a dot followed by hex,
and prefixes with underscore to form a valid and safe HTML attribute name.
We use URI encoding to do the initial heavy lifting, then escape the
remaining characters that we can't use. Since a valid attribute name can't
contain the percent sign (%), we use a dot (.) as an escape character.
|
code » |
![]()
Encoding map for characters which are not encoded by encodeURIComponent().
See encodeKey_ documentation for encoding details.
|
Code » | |
Global storageKey to storageNode map, so we save on reloading the storage.
|
Code » | |
![]()
No description.
|
Code » |