Closed johannilsson closed 10 years ago
Made a copy of the listeners before iterating in emit
using slice
.
Needed this when porting a Browserify build from nodes EventEmitter to WildEmitter.
Thanks for a great module!
Thank you @johannilsson !
This fixes an issue that occurred when an event had multiple listeners attached and one listener was removed while emiting. This caused an issue for
once
which only allowed one listener to be active at the time.