Re: Conflicts between D3E and Web DOM Core

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 UTC