photonstorm/phaser — pull request #942 by ivanpopelyshev (2014-06-24 20:18:50+00:00)
Title: remove clone in dispatch

In case of big number of listeners (N) and dispatches (M):

1) remove O(M*N) complexity from dispatches (cloning problem)
2) add O(N) complexity in add/remove

I do not know whether it is useful to someone, I just could not pass up.
I tested it on examples.