How to get rid of extended $.extend() function from a specific target object. Example: By reloading parts of the DOM with XHR, I’m able to detect the appearance of the object like this:
// Initliaize:
$('#sausage').catsup();
...
// Inside fn.catsup():
if($('body').find($(this)).size() == 0) // object has gone
But how can I kill fn.catsup()? This seems not to work:
$(this).clearQueue();
$(this).stop();
$(this).unbind();
delete $(this);
If I understood the question, you want to remove your function from jQuery.
use this:
Or as suggested by @Matt: