diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-09-20 13:49:13 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-09-20 13:49:13 +0000 |
commit | 1df15fabb459b7b824ec9a7827dce4ffede78683 (patch) | |
tree | 753745c15eccbc64d9ccd3081ad66c891f9ece6c /ui/ui.core.js | |
parent | d48b56a28c0651eaa7b0239ebd29736d33c46aa1 (diff) | |
download | jquery-ui-1df15fabb459b7b824ec9a7827dce4ffede78683.tar.gz jquery-ui-1df15fabb459b7b824ec9a7827dce4ffede78683.zip |
Core: Fixed #3457: Removing elements causes instantiated plugins to be destroyed again.
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r-- | ui/ui.core.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js index 2846e8e43..50140d73e 100644 --- a/ui/ui.core.js +++ b/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 ); }; |