Wolfy87/EventEmitter — Issue #11: Swap the function based loops for real ones
Author: Wolfy87
Created: 2011-10-17 19:42:32+00:00
State: open
Labels: Improvement

So instead of:

ee.eachListener('type', function() { ... });

It would use:

for(key in event) {
if(event.hasOwnProperty(key)) {
...
}
}

This should increase the speed that little bit more. Although I will do some benchmarks on jsPerf first, it may be basically the same, in which case, why not use the easier to read method that uses less bytes.