mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
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)
This commit is contained in:
parent
ba5d58d41b
commit
9c2e67cff1
@ -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 );
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user