javascript - Replacing original EventEmitter with custom one -


consider want use eventemitter2, or implementation of eventemitter of own. however, if eventemitter = myeventemitter, helps explicit inheritance happens after declaration, won't change existing objects inheriting builtin eventemitter, , limited scope of module.

can take advantage of alternative eventemitters when using builtin objects? can think of descending prototype chain of particular object, , if prototype appears instance of eventemitter, replace own, isn't there more elegant way?


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -