Hi Guys,

I was using Event.element(event) in an image onload observer and I
noticed that in IE,
it would return the Image element while in FireFox it would return a
[object HTMLDocument].

I used the guts of the Event.element and changed it to $
(event.currentTarget || event.srcElement)
and that fixed it.

This is probably an edge case.

More info about event targets can be found here.

You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to