You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a plan to suppot this feature in the near future? / Do you accept PRs for this?
//Edit:
For now I opted to create our own library with an API compatible with eventemitter3(It compiles and runs with Phaser3 which uses eventemitter3) which I alias in our webpack.config.js(alias: { 'eventemitter3': path.resolve(__dirname, './node_modules/sahnee-eventemitter') })
#123 mentioned
prependListener
support and opted to not implement it back in late 2017.This poses a problem as
prependListener
turns out to be quite quicial for our current project.preprendListener
also seems to be a standard Node.js API function for event emitters: https://nodejs.org/api/events.html#events_emitter_prependlistener_eventname_listenerIs there a plan to suppot this feature in the near future? / Do you accept PRs for this?
//Edit:
For now I opted to create our own library with an API compatible with eventemitter3(It compiles and runs with Phaser3 which uses eventemitter3) which I alias in our
webpack.config.js
(alias: { 'eventemitter3': path.resolve(__dirname, './node_modules/sahnee-eventemitter') }
)Instead of implementing the preprendListener function I went for a priority parameter here, which is not standard compilant by the looks of it but much more powerful. https://github.com/Sahnee-DE/eventemitter/blob/master/src/index.ts#L104
The text was updated successfully, but these errors were encountered: