Remove ajaxComplete handler
Hi,
I am setting a
$("body").ajaxComplete(...)
handler to monitor all ajax calls. I haven't figured out how to remove the event as the handler can possibly stopped and restarted a few times, and I don't want to have multiple handlers in the background for performance reasons.
I've tried saving the handler in a variable
var x=$("body").ajaxComplete(...)
...
x.remove()
but no success.
Is there any way?
Thanks and best regards
Eike