diff options
-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 ); }; |