aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.core.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2008-09-20 13:49:13 +0000
committerScott González <scott.gonzalez@gmail.com>2008-09-20 13:49:13 +0000
commit1df15fabb459b7b824ec9a7827dce4ffede78683 (patch)
tree753745c15eccbc64d9ccd3081ad66c891f9ece6c /ui/ui.core.js
parentd48b56a28c0651eaa7b0239ebd29736d33c46aa1 (diff)
downloadjquery-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.js5
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 );
};