Permalink
Browse files

fix emit returning true for unhandled wildcard event

  • Loading branch information...
1 parent 60a08f0 commit 4f6f5e16c1447926cd3c9a10fdfd3b0d47ce7d84 @pwellner pwellner committed Feb 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/eventemitter2.js
View
@@ -318,7 +318,7 @@
this.event = type;
listeners[i].apply(this, args);
}
- return true;
+ return listeners.length > 0;
}
else {
return false;

0 comments on commit 4f6f5e1

Please sign in to comment.