-
Notifications
You must be signed in to change notification settings - Fork 331
Open
Description
This might tie into issue #319 but I've been trying to get Bacon.js to work with Browserify and play nicely with jQuery. I'm new to the whole JS environment so I'm struggling a little. At the moment I seem to have to do this:
var $ = require('jquery');
var Bacon = require('baconjs').Bacon;
$.fn.asEventStream = Bacon.$.asEventStream;
ie. do the patching of asEventStream from Bacon.$ onto $ myself as the patching code in the Bacon source doesn't seem to be running in this situation.
It seems to work, but it is a shame that it doesn't just magically work without the extra line. Though given my lack of experience, I've no idea whether this needs fixing or if Browserify is not used widely enough to warrant it or if I'm simply making a silly mistake somewhere.
Thanks,
Michael
Metadata
Metadata
Assignees
Labels
No labels