isaacs/sax-js — pull request #90 by danmactough (2012-12-28 05:22:35+00:00)
Title: Fix global leak due to passing null context in Stream.apply()

Because `this` doesn't get assigned to `me` until a few lines below `Stream.apply()`, it turns out that the apply has `null` scope. That, in turn, means that when the `Stream` constructor calls `events.EventEmitter.call(this)`, `this` is null, i.e., global. And then, as a result, references to `this.domain`, `this._events` and `this._maxListeners` in `events` wind up leaking into the global scope.

Thanks for the awesome lib.