Closed latentflip closed 8 years ago
You can use lodash mixin
method for that.
Is this something we are still interested in pursing? This was opened quite some time ago. @HenrikJoreteg
@austinkelleher i think it makes sense, if you want to get it done, i'm a +1.
:+1: I like this. It looks so much cleaner than the old way.
Among other things, it will also mean we can stop using this.
I'm happy to merge this, but it's too out of sync with master. If someone wants to get it back up to speed, i'm happy to give them access to merge/publish.
I'll make a new Pull Request
@kohenkatz i've added you as a contributor here as well. Happy to give you npm access too, just need your username there.
Closing in favor of #15.
@HenrikJoreteg Thanks. My npm username is the same as my Github - kohenkatz
So I love WildEmitter, but I can literally never remember how to actually use it. And even when I read the docs I forget that I have to both inherit from a new Emitter, and do Emitter.call(this) in my constructor, I always forget one or the other.
This PR makes it as easy as
And doesn't break backwards compatibility.