Skip to content
Permalink
Browse files

Core: Fixed #3457: Removing elements causes instantiated plugins to b…

…e destroyed again.
  • Loading branch information...
scottgonzalez committed Sep 20, 2008
1 parent d48b56a commit 1df15fabb459b7b824ec9a7827dce4ffede78683
Showing with 4 additions and 1 deletion.
  1. +4 −1 ui/ui.core.js
@@ -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 );
};

0 comments on commit 1df15fa

Please sign in to comment.
You can’t perform that action at this time.