A
Andrew Poulos
I've started moving my code from using from this format
obj.onclick = blah;
to this format
obj.addEventListener("click",blah,false);
There is a hitch though.
In some cases I've been using the 'bind' prototype idea from
<url: http://www.brockman.se/writing/method-references.html.utf8 >
to allow event listeners to be 'owned' by the object that triggered the
event.
Is there a way to combine addEventListener and the 'bind' idea?
Andrew Poulos
obj.onclick = blah;
to this format
obj.addEventListener("click",blah,false);
There is a hitch though.
In some cases I've been using the 'bind' prototype idea from
<url: http://www.brockman.se/writing/method-references.html.utf8 >
to allow event listeners to be 'owned' by the object that triggered the
event.
Is there a way to combine addEventListener and the 'bind' idea?
Andrew Poulos