Permalink
Browse files

fix TypeError on node v0.8.x

Closes #7.
  • Loading branch information...
1 parent 18a70ed commit 4d81b1fe0e1a099246a8a6b63de8015ec6482275 Carlos Rodriguez committed with Jul 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -131,7 +131,7 @@ exports.disableMouse = function (stream) {
*/
var listenerCount = EventEmitter.listenerCount;
-if (listenerCount) {
+if (!listenerCount) {
listenerCount = function(emitter, event) {
return emitter.listeners(event).length;
};

0 comments on commit 4d81b1f

Please sign in to comment.