Fix #10576. Add alias for jQuery.event.handle so voyeur code still works.

Between new 1.7 special event hooks and jQuery.event.simulate() we have a much cleaner solution than the people calling jQuery.event.handle are doing, but we shouldn't break their use of this undocumented internal interface for now.
This commit is contained in:
Dave Methvin 2011-10-26 16:02:20 -04:00
parent fc13f5b6ce
commit 35bc30cd87

View File

@ -618,6 +618,10 @@ jQuery.event = {
}
};
// Some plugins are using, but it's undocumented/deprecated and will be removed.
// The 1.7 special event interface should provide all the hooks needed now.
jQuery.event.handle = jQuery.event.dispatch;
jQuery.removeEvent = document.removeEventListener ?
function( elem, type, handle ) {
if ( elem.removeEventListener ) {