Wolfy87/EventEmitter — Issue #15: Change global to this
Author: Wolfy87
Created: 2011-10-20 13:06:54+00:00
State: open
Labels: Improvement

I am currently doing some nasty if statements and checks for what the global object is. I have just realised this is not required.

(function(globalObject) {
globalObject.EventEmitter = EventEmitter;
}(this));

This will cause `globalObject` to equal the window or exports global object. Pretty neat I think.