I’m using the jQuery one() method on an event handler to fire once then de-register itself. Something like:
$(".main").one('mousedown', '.resizeBar', function (e) { /* my code */ });
Then some ajax (actually, a .net postback) resets most of the page (without reloading) and I want to set up the event handler again. Is there a way to either re-set the one() event handler to be active again? Manually re-triggering it this way doesn’t work, obviously:
$(".main .resizeBar").trigger("mousedown");
just wrap that code in a function