mrdoob/eventdispatcher.js — pull request #14 by dimalev (2014-06-05 06:47:00+00:00)
Title: Enforce dispatcher to not dispatch event after it was removed.

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 :)