Commit 5ba7f608 authored by Dave Methvin's avatar Dave Methvin

Ensure the hover event doesn't match hovercraft. Witchcraft, maybe.

parent d5897098
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
var rformElems = /^(?:textarea|input|select)$/i, var rformElems = /^(?:textarea|input|select)$/i,
rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/, rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,
rhoverHack = /\bhover(\.\S+)?/, rhoverHack = /\bhover(\.\S+)?\b/,
rkeyEvent = /^key/, rkeyEvent = /^key/,
rmouseEvent = /^(?:mouse|contextmenu)|click/, rmouseEvent = /^(?:mouse|contextmenu)|click/,
rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
......
...@@ -807,6 +807,9 @@ test("hover() and hover pseudo-event", function() { ...@@ -807,6 +807,9 @@ test("hover() and hover pseudo-event", function() {
var balance = 0; var balance = 0;
jQuery( "#firstp" ) jQuery( "#firstp" )
.on( "hovercraft", function() {
ok( false, "hovercraft is full of ills" );
})
.bind("hover", function( e ) { .bind("hover", function( e ) {
if ( e.type === "mouseenter" ) { if ( e.type === "mouseenter" ) {
balance++; balance++;
......
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