如何摆脱扩展$.extend()
功能从一个特定的目标对象。实例:通过重装与XHR的DOM的部分,我能够检测物体的像这样的外观:删除扩展功能
// Initliaize:
$('#sausage').catsup();
...
// Inside fn.catsup():
if($('body').find($(this)).size() == 0) // object has gone
但我怎么能杀fn.catsup()
?这似乎不工作:
$(this).clearQueue();
$(this).stop();
$(this).unbind();
delete $(this);
'kill catsup()'是什么意思? – Flash 2012-03-28 10:36:51
...'猫'谁? – Matt 2012-03-28 10:37:05
@msec。现在我更加困惑,你想做什么?你能给我们一些背景吗?这个问题很难理解。 – gdoron 2012-03-28 10:42:03