jeromeetienne / microevent.js

event emitter microlibrary - 20lines -for node and browser

Home Page:http://notes.jetienne.com/2011/03/22/microeventjs.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MicroEvent.mixin shouldn't extend destObject prototype

millermedeiros opened this issue · comments

If you want to extend all the instances you should pass MicroEvent.mixin(myObj.prototype) if you want to extend a single instance MicroEvent.mixin(myObj). That way you avoid changing behaviors that you don't want.