mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 06:35:03 -05:00
Fix #13483. Let slideDown() work after stop(). Close gh-1205.
This commit is contained in:
committed by
Dave Methvin
parent
2c7b1b8502
commit
ea5c22ec12
10
src/effects.js
vendored
10
src/effects.js
vendored
@@ -304,21 +304,29 @@ function defaultPrefilter( elem, props, opts ) {
|
||||
|
||||
|
||||
// show/hide pass
|
||||
dataShow = jQuery._data( elem, "fxshow" ) || jQuery._data( elem, "fxshow", {} );
|
||||
for ( index in props ) {
|
||||
value = props[ index ];
|
||||
if ( rfxtypes.exec( value ) ) {
|
||||
delete props[ index ];
|
||||
toggle = toggle || value === "toggle";
|
||||
if ( value === ( hidden ? "hide" : "show" ) ) {
|
||||
|
||||
// If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden
|
||||
if( value === "show" && dataShow[ index ] !== undefined ) {
|
||||
hidden = true;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
handled.push( index );
|
||||
}
|
||||
}
|
||||
|
||||
length = handled.length;
|
||||
if ( length ) {
|
||||
if ( !length ) {
|
||||
dataShow = data_priv.get( elem, "fxshow" ) || data_priv.access( elem, "fxshow", {} );
|
||||
} else {
|
||||
if ( "hidden" in dataShow ) {
|
||||
hidden = dataShow.hidden;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user