Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix #149

  • Loading branch information...
commit 0845358d1b11b8e0b800b212140811e96bdef3b1 1 parent b10d535
@RangerMauve RangerMauve authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/eventemitter2.js
View
8 lib/eventemitter2.js
@@ -203,7 +203,9 @@
'leak detected. %d listeners added. ' +
'Use emitter.setMaxListeners() to increase limit.',
tree._listeners.length);
- console.trace();
+ if(console.trace){
+ console.trace();
+ }
}
}
}
@@ -395,7 +397,9 @@
'leak detected. %d listeners added. ' +
'Use emitter.setMaxListeners() to increase limit.',
this._events[type].length);
- console.trace();
+ if(console.trace){
+ console.trace();
+ }
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.