mirror of
https://github.com/jquery/jquery.git
synced 2026-02-17 12:02:47 -05:00
Build: Update eslint config and fix associated errors
This commit is contained in:
11
src/effects.js
vendored
11
src/effects.js
vendored
@@ -453,9 +453,14 @@ jQuery.speed = function( speed, easing, fn ) {
|
||||
opt.duration = 0;
|
||||
|
||||
} else {
|
||||
opt.duration = typeof opt.duration === "number" ?
|
||||
opt.duration : opt.duration in jQuery.fx.speeds ?
|
||||
jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
|
||||
if ( typeof opt.duration !== "number" ) {
|
||||
if ( opt.duration in jQuery.fx.speeds ) {
|
||||
opt.duration = jQuery.fx.speeds[ opt.duration ];
|
||||
|
||||
} else {
|
||||
opt.duration = jQuery.fx.speeds._default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Normalize opt.queue - true/undefined/null -> "fx"
|
||||
|
||||
Reference in New Issue
Block a user