aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/deprecated/event.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/deprecated/event.js b/src/deprecated/event.js
index 84ff5bad0..4f5c59c0a 100644
--- a/src/deprecated/event.js
+++ b/src/deprecated/event.js
@@ -24,7 +24,9 @@ jQuery.fn.extend( {
},
hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+ return this
+ .on( "mouseenter", fnOver )
+ .on( "mouseleave", fnOut || fnOver );
}
} );