rschmukler / co-emitter

Generator powered emitter for sync and async
11 stars 1 forks source link

Code doesn't work with transpiled es6 code due to isGenerator returning false #1

Open rj33 opened 9 years ago

rj33 commented 9 years ago

The isGenerator function used to detect if a supplied callback function is a generator or normal function returns false on generators output from both babel and traceur transpiling. I'm not sure what an easy fix would be apart from extending the api to be able to make the type of callback explicitly defined. For now I grovel around in the this._style array to set my event callback type to 'generator'.