JSFiddle - React, Tailwind, and code Playground
JavaScript
var a = {
joe: function(e, v) {
console.log(e, v);
}
};
jQuery(a).bind("joe", a.joe).trigger('joe', ['argh']);
var a = {
joe: function(e, v) {
console.log(e, v);
}
};
jQuery(a).bind("joe", a.joe).trigger('joe', ['argh']);