aboutsummaryrefslogtreecommitdiffstats
path: root/ui/effect.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-05-13 18:11:57 +0200
committerGitHub <noreply@github.com>2024-05-13 18:11:57 +0200
commitac8b1e4eee8682e6825730c4823036a90031edad (patch)
tree6a4207cebc3138de51e6ec776e6d36117fd0a665 /ui/effect.js
parent969d182963347830a78b291198f6f183fb65d8e6 (diff)
downloadjquery-ui-ac8b1e4eee8682e6825730c4823036a90031edad.tar.gz
jquery-ui-ac8b1e4eee8682e6825730c4823036a90031edad.zip
Core: Make back compat disabled by default
Closes gh-2250
Diffstat (limited to 'ui/effect.js')
-rw-r--r--ui/effect.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/effect.js b/ui/effect.js
index 10cf8ed60..2232e041d 100644
--- a/ui/effect.js
+++ b/ui/effect.js
@@ -273,7 +273,7 @@ if ( $.expr && $.expr.pseudos && $.expr.pseudos.animated ) {
} )( $.expr.pseudos.animated );
}
-if ( $.uiBackCompat !== false ) {
+if ( $.uiBackCompat === true ) {
$.extend( $.effects, {
// Saves a set of properties in a data storage
@@ -759,7 +759,7 @@ $.fn.extend( {
// as toggle can be either show or hide depending on element state
args.mode = modes.shift();
- if ( $.uiBackCompat !== false && !defaultMode ) {
+ if ( $.uiBackCompat === true && !defaultMode ) {
if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) {
// Call the core method to track "olddisplay" properly