How can I get object reference instead of window reference in
this.handleEvent(evt)?

I have ECMAScript in a Batik SVG application using widgets. I noticed that
the Carto textbox does not work in Batik due to event handing problems, so I
am rewriting it. Andreas attached event handlers using the root element in
all cases, which causes many problems. I am attaching events to the widget
elements instead like this:

this.textboxRect.addEventListener("click",this._handleEvent,false);

The event handler in the textbox object does receive the event, but inside
the this.handleEvent(evt), the "this" refers to the window object. We really
want the reference to the textbox object.

How can I get the reference to the textbox object inside the event handler
in this case?
-- 
View this message in context: 
http://www.nabble.com/addEventListener-bug-this%3Dwindow-tf2626185.html#a7328449
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to