W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2011

Re: Conflicts between D3E and Web DOM Core

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 10 Mar 2011 16:10:58 +0100
To: "Olli Pettay" <Olli.Pettay@helsinki.fi>, Olli@pettay.fi
Cc: "www-dom@w3.org" <www-dom@w3.org>, "Jacob Rossi" <jrossi@microsoft.com>
Message-ID: <op.vr4u4kho64w2qv@anne-van-kesterens-macbook-pro.local>
On Thu, 10 Mar 2011 16:02:29 +0100, Olli Pettay <Olli.Pettay@helsinki.fi>  
wrote:
> On 03/10/2011 10:01 AM, Anne van Kesteren wrote:
>> It is artificial because you can just invoke initEvent with the empty
>> string, false, and false, and the event object will be identical. So you
>> are essentially throwing for not invoking initEvent which is rather  
>> silly.
>
> Why is that silly? Quite often when you have objects with
> some kind of init method, you want to "prevent" object usage
> before the init is called.

Because the initEvent() method in this case does not necessarily have to  
change anything. When invoked it could leave the object completely  
unchanged. Having it unset some special flag ("initEvent() invoked") would  
serve no purpose.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Thursday, 10 March 2011 15:11:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:07 GMT