aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorGreg Lavallee <greglavallee@wapolabs.com>2012-10-16 14:36:47 -0400
committerTimmy Willison <timmywillisn@gmail.com>2012-10-16 14:47:11 -0400
commite83bc970f2dc11fc0fd545cb0ec756a0eab64eda (patch)
tree2ca887f2d66ff407045f1616e51c53db9e4e2843 /src/event.js
parentfd5facf1d1db40149e0221ce8215b56f155b9394 (diff)
downloadjquery-e83bc970f2dc11fc0fd545cb0ec756a0eab64eda.tar.gz
jquery-e83bc970f2dc11fc0fd545cb0ec756a0eab64eda.zip
Fixes #12736. Move hover event hack to deprecated.js for removal in 1.9. Closes gh-982.
Signed-off-by: Timmy Willison <timmywillisn@gmail.com>
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/event.js b/src/event.js
index 3fea1a1be..f68a09c54 100644
--- a/src/event.js
+++ b/src/event.js
@@ -1,12 +1,8 @@
var rformElems = /^(?:textarea|input|select)$/i,
rtypenamespace = /^([^\.]*|)(?:\.(.+)|)$/,
- rhoverHack = /(?:^|\s)hover(\.\S+|)\b/,
rkeyEvent = /^key/,
rmouseEvent = /^(?:mouse|contextmenu)|click/,
- rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
- hoverHack = function( events ) {
- return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
- };
+ rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;
/*
* Helper functions for managing events -- not part of the public interface.
@@ -56,7 +52,7 @@ jQuery.event = {
// Handle multiple events separated by a space
// jQuery(...).bind("mouseover mouseout", fn);
- types = jQuery.trim( hoverHack(types) ).split( " " );
+ types = jQuery.trim( types ).split( " " );
for ( t = 0; t < types.length; t++ ) {
tns = rtypenamespace.exec( types[t] ) || [];
@@ -139,7 +135,7 @@ jQuery.event = {
}
// Once for each type.namespace in types; type may be omitted
- types = jQuery.trim( hoverHack( types || "" ) ).split(" ");
+ types = jQuery.trim( types ).split(" ");
for ( t = 0; t < types.length; t++ ) {
tns = rtypenamespace.exec( types[t] ) || [];
type = origType = tns[1];