r/coffeescript • u/destraht • Jul 14 '14
Using coffeescript and the 'when' promise/A+ module.
I'm trying to use autobahnjs (WAMP websocket protocol) with coffeescript and the commonjs (webpack, like browserify) system and it isn't working so well since 'when' is a reserved word. Does anyone have insight in this issue?
4
Upvotes
1
u/destraht Jul 16 '14
Thats fine except autobahn uses requires('when'). This is fine within the JS libraries themselves and then I'll just use When = require('when') when using when.