Skip to content
Permalink
Browse files

core: use triggerHandler instead of trigger to fire "remove" event - …

…Safari seems to have a native remove event which actually removes DOM elements - very dangerous! (fixes #3037)
  • Loading branch information
Paul Bakaus
Paul Bakaus committed Jul 3, 2008
1 parent ba5d58d commit 9c2e67cff190f9f82db3b3bd25381c0a2a7c3933
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/ui.core.js
@@ -65,7 +65,7 @@ $.ui = {

var _remove = $.fn.remove;
$.fn.remove = function() {
$("*", this).add(this).trigger("remove");
$("*", this).add(this).triggerHandler("remove");
return _remove.apply(this, arguments );
};

0 comments on commit 9c2e67c

Please sign in to comment.
You can’t perform that action at this time.