eventdispatcher.js icon indicating copy to clipboard operation
eventdispatcher.js copied to clipboard

Enforce dispatcher to not dispatch event after it was removed.

Open dmytrolev opened this issue 10 years ago • 0 comments

Remove all event listeners functionality.

I see you copy all the events each time you emit an event. I hope my approach (which originally comes from starling implementation of juggler - their animation manager) can save some time and memory :)

Also, some times, in one event handler, we remove other event handler, and it's disappointing, when removed event handler is called. making event handlers null on remove, and skip them in event dispatching code allows this to happen.

Hope you gonna like it :)

dmytrolev avatar Jun 05 '14 06:06 dmytrolev