Skip to content

Instantly share code, notes, and snippets.

@wolfflow
Created December 11, 2015 08:45
Show Gist options
  • Save wolfflow/e2341d819594464037b3 to your computer and use it in GitHub Desktop.
Save wolfflow/e2341d819594464037b3 to your computer and use it in GitHub Desktop.
Shortest Bacon Bus Mixin Ever
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