HenrikJoreteg / wildemitter

A super lightweight EventEmitter similar to what comes in Node.js, but with a support for wildcard events '*'
MIT License
213 stars 21 forks source link

AMD support (doesn't work with RequireJS) #11

Open kashifshamaz21 opened 9 years ago

kashifshamaz21 commented 9 years ago

Currently, this library doesn't work well with AMD pattern, and it needs a wrapper to be able to run with RequireJS.

wenkesj commented 9 years ago

Is this still an issue for you? @kashifshamaz21 @austinkelleher

kohenkatz commented 8 years ago

This can be fixed by switching from module.exports = WildEmitter; to a UMD returnExports pattern.

That will also have a bonus of simplifying the use of Browserify and Bower together, because there will be no need to point Bower to the "bare" version of the file.

kohenkatz commented 8 years ago

refs #18