This project is archived and is in readonly mode.

#455 ✓resolved
Daniel Steigerwald

fireEvent two little fixes

Reported by Daniel Steigerwald | November 1st, 2008 @ 03:59 PM | in 1.3.0 rc2 (closed)


events[type].keys.each(function(fn){...

If some fired listener, will remove event itself or another, from element or class events storage, array iteration can fail. I spend half hour by debugging strange errors related to .fireEvent.

Fix is easy. Listeners have to be iterated on array clone.

Also, Element.fireEvent should have removeOn too.

http://pastie.org/305490

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Referenced by

Pages