JSFiddle - React, Tailwind, and code Playground
by austegard
HTML
<p><button id="test">Normal</button><button id="testProxy">Proxy</button></p>
<p id="log"></p>
JavaScript
var obj = {
name: "John",
test: function() {
$("#log").append(this.name);
$("#test").unbind("click", obj.test);
}
};
$("#testProxy").click(jQuery.proxy(obj, "test"));
$("#test").click(function(e) {
obj.test(e)
});