Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #10576. Add alias for jQuery.event.handle so voyeur code still wo…
…rks.

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.
  • Loading branch information
dmethvin committed Oct 26, 2011
1 parent fc13f5b commit 35bc30c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/event.js
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 35bc30c

Please sign in to comment.