CreateJS/EaselJS — pull request #259 by drkibitz (2013-02-16 07:44:37+00:00)
Title: dispatchEvent, avoid unnecessary apply and instanceof

Some white removal as well because my editor just does that ;)

What the dispatchEvent changes are based on are results from these:
http://jsperf.com/function-calls-direct-vs-apply-vs-call-vs-bind/5
jsperf.com/function-calls-direct-vs-apply-vs-call-vs-bind/5

Since there is just one argument, and you are not passing a context, `apply` and even `call` is not needed here. Also I thought just checking for the EventListener interface on the listener object was enough rather than doing `instanceof`.