Commit d1fe3153 d1fe3153aa9ab4c73458258a7e3cef8208862126 by Nicolas Perriault

fixed edge case where events.EventEmitter._filters could have not been initialized to an object

1 parent 6baa46ce
......@@ -218,6 +218,7 @@ EventEmitter.prototype.listeners = function(type) {
EventEmitter.prototype.filter = function() {
var type = arguments[0];
if (!this._filters) {
this._filters = {};
return;
}
var filter = this._filters[type];
......