bacon.fromonevent

0.1.1 • Public • Published

bacon.fromonevent

Legacy event binding plugin for Bacon.js.

Quite useless at desktop/mobile, but certainly useful in a huge variety of embedded browsers (e.g. Set-Top Boxes and SmartTVs), which component APIs use 'on-eventname' style for their callbacks.

Build Status

Example Code

btn = document.getElementById("btn")
Bacon.fromOnEvent(btn, "onclick").onValue(function(){
  //callback here
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i bacon.fromonevent

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • wolfflow