Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfd6ffc5

Browse files
authored
Deprecated: Define.hover() using non-deprecated methods
Make the deprecated `.hover()` method not rely on other deprecatedmethods: `.mouseenter()` & `.mouseleave()`. Use `.on()` instead.Closesgh-5251
1 parent6616acf commitfd6ffc5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/deprecated/event.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ jQuery.fn.extend( {
2424
},
2525

2626
hover:function(fnOver,fnOut){
27-
returnthis.mouseenter(fnOver).mouseleave(fnOut||fnOver);
27+
returnthis
28+
.on("mouseenter",fnOver)
29+
.on("mouseleave",fnOut||fnOver);
2830
}
2931
});
3032

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp