W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

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

From: Glenn Maynard <glenn@zewt.org>
Date: Wed, 21 Sep 2011 22:20:23 -0400
Message-ID: <CABirCh_dYG0urB9j4MNmhuuj62HAoDW7HSPeoxJmnCZOt8sdjQ@mail.gmail.com>
To: Israel Hilerio <israelh@microsoft.com>
Cc: "annevk@opera.com" <annevk@opera.com>, "Jonas Sicking (jonas@sicking.cc)" <jonas@sicking.cc>, "public-webapps@w3.org" <public-webapps@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:47 GMT