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

Commit7287894

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

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
@@ -28,7 +28,9 @@ jQuery.fn.extend( {
2828
},
2929

3030
hover:function(fnOver,fnOut){
31-
returnthis.mouseenter(fnOver).mouseleave(fnOut||fnOver);
31+
returnthis
32+
.on("mouseenter",fnOver)
33+
.on("mouseleave",fnOut||fnOver);
3234
}
3335
});
3436

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp