The goog.storage.mechanism.IEUserData Class

goog.storage.mechanism.IEUserData
> goog.storage.mechanism.IterableMechanism
> goog.storage.mechanism.Mechanism

goog.storage.mechanism.IEUserData(storageKey, opt_storageNodeId)

Provides a storage mechanism using IE userData.

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.

.ENCODE_MAP {!Object}

Encoding map for characters which are not encoded by encodeURIComponent().

@const

.__iterator__(opt_keys)

Returns an iterator that iterates over the elements in the storage. Will throw goog.iter.StopIteration after the last element.

opt_keys {boolean=}
True to iterate over the keys. False to iterate over the values. The default value is false.
returns {!goog.iter.Iterator}
The iterator.

.clear()

Remove all key-value pairs. Could be overridden in a subclass, as the default implementation is not very efficient - it iterates over all keys.

.get()

.getCount()

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.

.isAvailable()

Determines whether or not the mechanism is available.

returns {boolean}
True if the mechanism is available.

.remove()

.set()