Re: [indexeddb] Updates to the Event Constructor to match DOM 4

On Wed, Sep 21, 2011 at 8:52 PM, Israel Hilerio <israelh@microsoft.com>wrote:

> Sounds good! The updated example will look like this:
> var myDictionary = { bubbles: true, cancellable: true, oldVersion=1,
> newVersion=2};
> var changeEvent = new IDBVersionChangeEvent("versionchange", myDictionary);
>

The common pattern will probably be:

var changeEvent = new IDBVersionChangeEvent("versionchange", {
    bubbles: true, cancellable: true, oldVersion: 1, newVersion: 2
});

so that might be a slightly better example.  (Either way, note "=" -> ":".)

-- 
Glenn Maynard

Received on Thursday, 22 September 2011 02:20:50 UTC