jquery-prototype-custom-event-bridge

1.0.3 • Public • Published

jQuery-prototype-custom-event-bridge

Test it here.

Allow custom events in the format namespace:eventname to pass between Prototype and jQuery.

Such custom events triggered by jQuery will hit Prototype observers (as well as jQuery listeners).

Such custom events triggered by Prototype will hit jQuery listeners (as well as Prototype observers).

The first element of the data array passed along by the jQuery trigger will be sent to the Prototype observer.

The memo data object passed along by the Prototype trigger will be encoded in the first element of the event data array received by the jQuery listener.

This drop-in also prevents jQuery's trigger implementation from executing any Prototype-contributed functions on an event target element that match the jQuery event type.

Installation

npm install jquery-prototype-custom-event-bridge

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    2
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i jquery-prototype-custom-event-bridge

Weekly Downloads

2

Version

1.0.3

License

MIT

Last publish

Collaborators

  • annavo
  • widen-npm
  • feltnerm