JSFiddle - React, Tailwind, and code Playground

by rwaldron

JavaScript

var $doc = $(document);

$doc.bind( "duh", function( event, data ) {
    console.log( event );
    console.log( data );
});

$doc.trigger( "duh", "this is data, not event.data" );