JSFiddle - React, Tailwind, and code Playground

by dmethvin

HTML

<p>
    Undelegate with class selector will not be executed correctly with jQuery 1.6.x, thus clicking on the button more then once will alert incorrectly multiple messages.
</p>

<div id="container">
        <button type="button" class="b">Click me twice</button>
</div>

JavaScript

function attach() {
    $("#container").undelegate(".mine").delegate(".b", "click.mine", $.proxy(function() { alert("This should not be shown twice in a row"); attach(); }))
}    

attach()