diff options
-rw-r--r-- | ui/ui.core.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js index 50140d73e..413d5ee1b 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -13,7 +13,8 @@ var _remove = $.fn.remove; $.fn.remove = function() { - // TODO: add comment about why we can't use .trigger() + // Safari has a native remove event which actually removes DOM elements, + // so we have to use triggerHandler instead of trigger (#3037). $("*", this).add(this).each(function() { $(this).triggerHandler("remove"); }); |