aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 );
};