Core: Added comment about why we use triggerHandler instead of trigger in $.fn.remove.

This commit is contained in:
Scott González 2008-09-20 13:55:35 +00:00
parent 1df15fabb4
commit 068d2483c9

View File

@ -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");
});