YUI recommends YUI 3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

Yahoo! UI Library

Storage  2.9.0

Yahoo! UI Library > Storage > YAHOO.util.StorageEvent
Search:
 
Filters

Class YAHOO.util.StorageEvent

The StorageEvent class manages the storage events by emulating the HTML 5 implementation.

Constructor

YAHOO.util.StorageEvent ( oStorageArea , sKey , oOldValue , oNewValue , sType )
Parameters:
oStorageArea <Object> Required. The Storage object that was affected.
sKey <String> Required. The key being changed; DOMString in HTML 5 spec.
oOldValue <Mixed> Required. The old value of the key being changed; DOMString in HTML 5 spec.
oNewValue <Mixed> Required. The new value of the key being changed; DOMString in HTML 5 spec.
sType <String> Required. The storage event type.

Properties

key - static {String}

The 'key' attribute represents the key being changed.

newValue - static {Mixed}

The 'newValue' attribute represents the new value of the key being changed.

oldValue - static {Mixed}

The 'oldValue' attribute represents the old value of the key being changed.

source - static {Object}

The 'source' attribute represents the WindowProxy object of the browsing context of the document whose key changed.

storageArea - static {Object}

The 'storageArea' attribute represents the Storage object that was affected.

type - static {Object}

The 'type' attribute represents the Storage event type.

url - static {String}

The 'url' attribute represents the address of the document whose key changed.


Copyright © 2011 Yahoo! Inc. All rights reserved.