Dart API Referencedart:htmlStorageEvent

StorageEvent Interface

Describes an event occurring on HTML5 client-side storage data.
1.0
11.0
Introduced
Gecko 2.0
Inherits from: 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.

Gecko 2.0 note
(Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

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

Event

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 #

Represents the key changed. The key attribute is null when the change is caused by the storage clear() method. Read only.
final String key;

Code final String newValue #

The new value of the 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 #

The original value of the 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 #

Represents the Storage object that was affected. Read only.
final Storage storageArea;

Code final String url #

The URL of the document whose key changed. Read only.
final String url;

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.