W3C home > Mailing lists > Public > www-style@w3.org > January 2013

[css3-transitions] Switch TransitionEvent to use a constructor rather than an init* method

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 23 Jan 2013 10:59:20 -0800
Message-ID: <CAAWBYDCd_fuSq-Eir5G3mEVvatLSub6aCEXKe2UdALXUCX1rDg@mail.gmail.com>
To: www-style list <www-style@w3.org>
Currently, the IDL for TransitionEvent uses the init*() method pattern
for manually creating events.  This pattern has been generally
repudiated in favor of simple constructors, so we should switch
TransitionEvent over to that.

Interestingly, AnimationEvent has already been changed to use a
constructor, so it looks like this would really just be a consistency
sync-up.

Even more interestingly, it looks like WebKit has already switched its
code to use a constructor, as evidenced by this recent test check-in:
<http://trac.webkit.org/browser/trunk/LayoutTests/fast/events/constructors/transition-event-constructor.html?rev=140448>

So, someone mind doing a quick edit of the spec's IDL to fix this issue?

~TJ
Received on Wednesday, 23 January 2013 19:00:16 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT