mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-29 18:57:55 -05:00
Core: Fixed #3457: Removing elements causes instantiated plugins to be destroyed again.
This commit is contained in:
@@ -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 );
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user