kylephillips / favorites

Simple and flexible favorite buttons for any WordPress post type.
https://favoriteposts.com
223 stars 86 forks source link

[Feature Request]: Add native JavaScript events #170

Open tyrann0us opened 1 year ago

tyrann0us commented 1 year ago

Is your feature request related to a problem? Please describe. It's currently only doable with jQuery to extend the plugin's functionality client-side because it only dispatches jQuery events.

Describe the desired solution It would be great if, in addition, the plugin would also dispatch native JavaScript events. It's basically only two lines of code per event. 😉

Describe the alternatives that you have considered None.

Additional context See https://developer.mozilla.org/en-US/docs/Web/Events/Creating_and_triggering_events for more details on native JS events.

Thanks!

artifex-media commented 11 months ago

+1