mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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:
parent
fc13f5b6ce
commit
35bc30cd87
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user