Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added removeAllListeners #132

Closed
weepy opened this issue Dec 9, 2011 · 1 comment
Closed

added removeAllListeners #132

weepy opened this issue Dec 9, 2011 · 1 comment

Comments

@weepy
Copy link

weepy commented Dec 9, 2011

Hi - when using beforeEach - I was getting an error in the browser as EventEmitter does not have this method. Adding in the following made it work ok :

EventEmitter.prototype.removeAllListeners = function(event) {
delete this.callbacks[event]
}

@tj
Copy link
Contributor

tj commented Dec 9, 2011

oh right, i should probably add the full EventEmitter implementation haha

@tj tj closed this as completed in 5329f20 Dec 9, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants