W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

Re: ECMAScript binding for EventListener

From: Dylan Schiemann <dylans@yahoo.com>
Date: Fri, 15 Jun 2001 07:19:41 -0700 (PDT)
Message-ID: <20010615141941.81496.qmail@web13507.mail.yahoo.com>
To: Johnny Stenback <jst@netscape.com>
Cc: www-dom@w3.org

--- Johnny Stenback <jst@netscape.com> wrote:

> Are you saying that the 'this' should be the
> function foo in the 
> following case too?
> 
> function foo(e)
> {
>    alert(this);
> }
> 
> element.addEventListener("click", foo, false);
> 

Not necessarily.  However, something equivalently
simple would be nice.  Jeff's idea works, but it isn't
as clean as it should be.

-Dylan


__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/
Received on Friday, 15 June 2001 10:19:46 GMT

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