mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Core: Fixed #3457: Removing elements causes instantiated plugins to be destroyed again.
This commit is contained in:
parent
d48b56a28c
commit
1df15fabb4
@ -13,7 +13,10 @@
|
||||
|
||||
var _remove = $.fn.remove;
|
||||
$.fn.remove = function() {
|
||||
$("*", this).add(this).triggerHandler("remove");
|
||||
// TODO: add comment about why we can't use .trigger()
|
||||
$("*", this).add(this).each(function() {
|
||||
$(this).triggerHandler("remove");
|
||||
});
|
||||
return _remove.apply(this, arguments );
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user