Re: ECMAScript binding for EventListener

--- 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 UTC