mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Ensure the hover event doesn't match hovercraft. Witchcraft, maybe.
This commit is contained in:
parent
d589709851
commit
5ba7f60822
@ -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() {
|
|||||||
|
|
||||||
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++;
|
||||||
|
Loading…
Reference in New Issue
Block a user