Closed bryanforbes closed 6 years ago
Bug
Package Version: 2.0.0
Code
const e = new Evented(); e.on('foo', () => console.log(1)); const h = e.on('foo', () => { console.log(2); h.destroy(); }); e.on('foo', () => console.log(3)); e.emit({ type: 'foo' });
Expected behavior:
Logs 1, 2, and 3
Actual behavior:
Logs 1 and 2, but not 3
Bug
Package Version: 2.0.0
Code
Expected behavior:
Logs 1, 2, and 3
Actual behavior:
Logs 1 and 2, but not 3