diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2023-09-20 00:54:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-20 00:54:40 +0200 |
commit | 93ca49e6d1ac23fee33b3bc3b7f4d93dd1a25cb7 (patch) | |
tree | 26a2692a0e704e48348b45814e341777c4cbaed3 /src/effects.js | |
parent | 46f6e3da796ee9d28c7c1428793b72d66bcbb0b7 (diff) | |
download | jquery-93ca49e6d1ac23fee33b3bc3b7f4d93dd1a25cb7.tar.gz jquery-93ca49e6d1ac23fee33b3bc3b7f4d93dd1a25cb7.zip |
Core: Simplify code post browser support reduction
Summary of the changes:
* Core: Simplify code post browser support reduction
* Tests: Remove legacy jQuery.cache & oldIE leftovers
* Tests: Reformat JavaScript in delegatetest.html
* Docs: "jQuery Foundation Projects" -> "jQuery Projects"
* Tests: Drop an unused localfile.html file (modern browsers don't support
the `file:` protocol this way, there's no point in keeping the file around)
* Effects: Remove a redundant `!fn` check (`fn || !fn && easing` is equivalent
to `fn || easing`; simplify the code)
* CSS: Explain the fallback to direct object access in curCSS better
* Tests: Deduplicate `jQuery.parseHTML` test titles
* Dimensions: Add a test for fractional values
* Tests: Fix a buggy WebKit regex
Closes gh-5296
Diffstat (limited to 'src/effects.js')
-rw-r--r-- | src/effects.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects.js b/src/effects.js index 99dbad7bc..3c1bd33fd 100644 --- a/src/effects.js +++ b/src/effects.js @@ -446,7 +446,7 @@ jQuery.Animation = jQuery.extend( Animation, { jQuery.speed = function( speed, easing, fn ) { var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { - complete: fn || !fn && easing || + complete: fn || easing || typeof speed === "function" && speed, duration: speed, easing: fn && easing || easing && typeof easing !== "function" && easing |