StorageEvent Interface
nsIDOMEvent
Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
A StorageEvent
is sent to a window when a storage area changes.
Although this event existed prior to Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
, it did not match the specification. The old event format is now represented by the nsIDOMStorageEventObsolete
interface.
Extends
Methods
Code void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storage storageAreaArg) #
Initializes the event in a manner analogous to the similarly-named method in the DOM Events interfaces.
Parameters
typeArg
- The name of the event.
canBubbleArg
- A boolean indicating whether the event bubbles up through the DOM or not.
cancelableArg
- A boolean indicating whether the event is cancelable.
keyArg
- The key whose value is changing as a result of this event.
oldValueArg
- The key's old value.
newValueArg
- The key's new value.
urlArg
- Missing Description
storageAreaArg
- The DOM
Storage
object representing the storage area on which this event occurred.
void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storage storageAreaArg);
Fields
Code final String key #
key
attribute is null
when the change is caused by the storage clear()
method. Read only.
final String key;
Code final String newValue #
key
. The newValue
is null
when the change has been invoked by storage clear()
method or the key
has been removed from the storage. Read only.
final String newValue;
Code final String oldValue #
key
. The oldValue
is null
when the change has been invoked by storage clear()
method or the key
has been newly added and therefor doesn't have any previous value. Read only.
final String oldValue;
Code final Storage storageArea #
final Storage storageArea;
This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.