diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-07-03 13:35:07 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-07-03 13:35:07 +0000 |
commit | 9c2e67cff190f9f82db3b3bd25381c0a2a7c3933 (patch) | |
tree | b3875c46e03f3d38fd82afd78d5b0bc60747dce0 /ui | |
parent | ba5d58d41b0ba3d42cb67662292cac916f12a266 (diff) | |
download | jquery-ui-9c2e67cff190f9f82db3b3bd25381c0a2a7c3933.tar.gz jquery-ui-9c2e67cff190f9f82db3b3bd25381c0a2a7c3933.zip |
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)
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js index 3a7238ca8..2150e497a 100644 --- a/ui/ui.core.js +++ b/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 ); }; |