This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10601 - [IndexedDB] Need some way to create IDB events?
Summary: [IndexedDB] Need some way to create IDB events?
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Indexed Database API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Eliot Graff
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-10 15:15 UTC by Jeremy Orlow
Modified: 2011-06-01 18:52 UTC (History)
4 users (show)

See Also:


Attachments

Description Jeremy Orlow 2010-09-10 15:15:24 UTC
It seems that most (or all?) events can be instantiated by a user.  Do we need to add an init method like in http://dev.w3.org/html5/webstorage/#event-definition ?
Comment 1 Jeremy Orlow 2011-05-04 04:10:29 UTC
As Israel pointed out in "[IndexedDB] Bug#10601 - Need some way to create IDB events?", these days this bug essentially just means that we need to add the following:

interface IDBVersionChangeEvent: Event {
          readonly attribute DOMString version;
-->       void initIDBVersionChangeEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString version);
}
Comment 2 Eliot Graff 2011-05-23 17:13:48 UTC
I'll add the method
Comment 3 Eliot Graff 2011-06-01 18:52:28 UTC
Added initIDBVersionChangeEvent method to IDBVersionChangeEvent, section 3.2.2:

initIDBVersionChangeEvent

    Intializes the value of an IDBVersionChangeEvent event once it's been created.

typeArg		DOMString	Specifies the event type.
canBubbleArg	boolean	 	Boolean value that indicates whether the event can bubble.
cancelableArg	boolean	 	Boolean value that indicates whether the event is cancelable.
version		DOMString	The new version of the database during a VERSION_CHANGE transaction.