aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-10-26 16:02:20 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-10-26 16:02:20 -0400
commit35bc30cd87c0578359c3127033dd85e1af132f69 (patch)
treee40f7c072d58be2fc4eda3da553b61d8bdf136cc /src
parentfc13f5b6cebc25e7cdb7bc72c4a7d3298e2c696a (diff)
downloadjquery-35bc30cd87c0578359c3127033dd85e1af132f69.tar.gz
jquery-35bc30cd87c0578359c3127033dd85e1af132f69.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/event.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event.js b/src/event.js
index bec343fd2..2171f4be4 100644
--- a/src/event.js
+++ b/src/event.js
@@ -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 ) {