Build: Update eslint config and fix associated errors

This commit is contained in:
Oleg Gaidarenko
2016-07-15 21:42:25 +04:00
committed by GitHub
parent 96966c0220
commit e4fd41f8fa
15 changed files with 135 additions and 73 deletions

11
src/effects.js vendored
View File

@@ -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"