Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix emit returning true for unhandled wildcard event

  • Loading branch information...
commit 4f6f5e16c1447926cd3c9a10fdfd3b0d47ce7d84 1 parent 60a08f0
@pwellner pwellner authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/eventemitter2.js
View
2  lib/eventemitter2.js
@@ -318,7 +318,7 @@
this.event = type;
listeners[i].apply(this, args);
}
- return true;
+ return listeners.length > 0;
}
else {
return false;
Please sign in to comment.
Something went wrong with that request. Please try again.