Created
December 11, 2015 08:45
-
-
Save wolfflow/e2341d819594464037b3 to your computer and use it in GitHub Desktop.
Shortest Bacon Bus Mixin Ever
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = | |
component-will-mount: !-> (@bus = new Bacon.Bus).onValue! | |
component-will-unmount: !-> @bus.end! | |
plug: (es) -> @bus.plug es |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment