diff options
-rw-r--r-- | src/event.js | 2 | ||||
-rw-r--r-- | test/unit/event.js | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js index 43d246eee..cd946dadb 100644 --- a/src/event.js +++ b/src/event.js @@ -2,7 +2,7 @@ var rformElems = /^(?:textarea|input|select)$/i, rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/, - rhoverHack = /\bhover(\.\S+)?/, + rhoverHack = /\bhover(\.\S+)?\b/, rkeyEvent = /^key/, rmouseEvent = /^(?:mouse|contextmenu)|click/, rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, diff --git a/test/unit/event.js b/test/unit/event.js index 17caed56b..0852554eb 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -807,6 +807,9 @@ test("hover() and hover pseudo-event", function() { var balance = 0; jQuery( "#firstp" ) + .on( "hovercraft", function() { + ok( false, "hovercraft is full of ills" ); + }) .bind("hover", function( e ) { if ( e.type === "mouseenter" ) { balance++; |