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

Create events collection dynamically #3

Closed
gschambers opened this Issue Jan 6, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@gschambers
Copy link

gschambers commented Jan 6, 2014

This would be a really useful base for inheritance, but by creating the collection this.e = {} in the constructor, it would be necessary to call Emitter.call(this); inside any subclass.

The various emitter methods could do something like var e = this.e || (this.e = {}); which would make inheritance trivial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment