Commit 35bc30cd authored by Dave Methvin's avatar Dave Methvin

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.
parent fc13f5b6
...@@ -618,6 +618,10 @@ jQuery.event = { ...@@ -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 ? jQuery.removeEvent = document.removeEventListener ?
function( elem, type, handle ) { function( elem, type, handle ) {
if ( elem.removeEventListener ) { if ( elem.removeEventListener ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment