Comments (5)
changing the 238 line to
if (type === 'newListener' && !this.wildcard) {
fixes the issue. But you need to check if it won't slow down the performance.
from eventemitter2.
looking at this today...
from eventemitter2.
Any fix for this? Just spent a few hours discovering the same thing, on v0.4.10 (currently on npm)
At line 249, it looks for the event in the _events container, but that container isn't updated by growListenerTree (called at line 348 if wildcard is true)
from eventemitter2.
Hey - honest question, is this project still alive? This is a pretty big bug that's been open for 10 months now, two potential fixes submitted.
from eventemitter2.
ok, i came up with a solution, pushed to master, tagged it, and then published 0.4.11 to npm.
from eventemitter2.
Related Issues (20)
- Waiting for event to finish HOT 4
- proposal: rewrite source in typescript HOT 5
- Wildcard listener not invoked when also matching exact listener HOT 5
- a typo in `toObject` HOT 1
- Make it more ESM module friendly HOT 4
- addListener types definition missing options parameter HOT 1
- Why not Promise.allSettled instead of Promise.all?
- Graceful Shutdown HOT 1
- Feature Request: await emitter.onAny() HOT 1
- Export interface WaitForFilter HOT 1
- An index signature parameter type must be either 'string', 'symbol' or 'number' HOT 10
- [QUESTION]How to on many eventNames when wildcard is true
- logPossibleMemoryLeak throws an error when event name is a Symbol
- EventEmitter2 is not handling throw exception and closing app HOT 4
- [request] Add method to add an EventEmitter to class that already extends another class
- How to obtain eventemitter2.min.js
- EventEmitter in JavaScript can cause out of memory
- Not compatible with strict CSP due to `new Function(..)`
- Is there a way of configuring anctions to be ran before and after the handle of an event?
- Listener execution order regarding wildcards HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventemitter2.