Skip to content

Commit edbfd25

Browse files
Andreas Eldhryanflorence
Andreas Eldh
authored andcommitted
Allow infinite ActiveState change listeners.
Fixes a warning from event-emitter when using more than ten Links (or other components using the ActiveState mixin).
1 parent 0af94a0 commit edbfd25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/stores/ActiveStore.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ var EventEmitter = require('events').EventEmitter;
33
var CHANGE_EVENT = 'change';
44
var _events = new EventEmitter;
55

6+
_events.setMaxListeners(0);
7+
68
function notifyChange() {
79
_events.emit(CHANGE_EVENT);
810
}

0 commit comments

Comments
 (0)