Re: [DOMCore] Making event initializing easier

On 06/27/2011 06:58 PM, Anne van Kesteren wrote:
> On Mon, 27 Jun 2011 16:52:54 +0200, Olli Pettay
> <Olli.Pettay@helsinki.fi> wrote:
>> Handling of UI events with this new syntax needs to be defined
>> somewhere first. Especially event.pageX/Y. The value of those depend
>> on the document/window.
>
> I do not really see why that makes them special or more difficult than
> the others?
>
>
When "Event" is created, it doesn't need to know about the
context in which it is created.
When "UIEvent" or "MouseEvent" is created, it does need to know
the context, since it needs to set pageX/Y automatically.


-Olli

Received on Monday, 27 June 2011 16:01:28 UTC