JSFiddle - React, Tailwind, and code Playground
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(".b").delegate(".b", "click", $.proxy(function() { alert("This should not be shown twice in a row"); attach(); }))
}
attach()