JSFiddle - React, Tailwind, and code Playground

by doug65536

HTML

<p id="by_id">A</p>
<p class="by_class">B</p>

JavaScript

"use strict";
debugger;
var attach_seq = 0;
var attach_break = -1;
var orig_live = $.fn.live;
$.fn.live = function(types, data, fn) {
    if (attach_seq == attach_break) {
        debugger;
    }
    console.log('----- event attached ----- # ' + attach_seq++);
    console.log('selector:');
    this.each(function() { console.log(this); });
    console.log('types: ', types, 'data:', data, 'fn:', fn);
    return orig_live.apply(this, arguments);
};

$('#by_id').live('click', function() {
    console.log('A clicked');
});
$('.by_class').live('click', function() {
    console.log('B clicked');
});