Edit File by line
/home/barbar84/www/wp-inclu.../js/jquery
File: jquery.js
num = parseFloat( val );
[7000] Fix | Delete
return extra === true || isFinite( num ) ? num || 0 : val;
[7001] Fix | Delete
}
[7002] Fix | Delete
[7003] Fix | Delete
return val;
[7004] Fix | Delete
}
[7005] Fix | Delete
} );
[7006] Fix | Delete
[7007] Fix | Delete
jQuery.each( [ "height", "width" ], function( _i, dimension ) {
[7008] Fix | Delete
jQuery.cssHooks[ dimension ] = {
[7009] Fix | Delete
get: function( elem, computed, extra ) {
[7010] Fix | Delete
if ( computed ) {
[7011] Fix | Delete
[7012] Fix | Delete
// Certain elements can have dimension info if we invisibly show them
[7013] Fix | Delete
// but it must have a current display style that would benefit
[7014] Fix | Delete
return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
[7015] Fix | Delete
[7016] Fix | Delete
// Support: Safari 8+
[7017] Fix | Delete
// Table columns in Safari have non-zero offsetWidth & zero
[7018] Fix | Delete
// getBoundingClientRect().width unless display is changed.
[7019] Fix | Delete
// Support: IE <=11 only
[7020] Fix | Delete
// Running getBoundingClientRect on a disconnected node
[7021] Fix | Delete
// in IE throws an error.
[7022] Fix | Delete
( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?
[7023] Fix | Delete
swap( elem, cssShow, function() {
[7024] Fix | Delete
return getWidthOrHeight( elem, dimension, extra );
[7025] Fix | Delete
} ) :
[7026] Fix | Delete
getWidthOrHeight( elem, dimension, extra );
[7027] Fix | Delete
}
[7028] Fix | Delete
},
[7029] Fix | Delete
[7030] Fix | Delete
set: function( elem, value, extra ) {
[7031] Fix | Delete
var matches,
[7032] Fix | Delete
styles = getStyles( elem ),
[7033] Fix | Delete
[7034] Fix | Delete
// Only read styles.position if the test has a chance to fail
[7035] Fix | Delete
// to avoid forcing a reflow.
[7036] Fix | Delete
scrollboxSizeBuggy = !support.scrollboxSize() &&
[7037] Fix | Delete
styles.position === "absolute",
[7038] Fix | Delete
[7039] Fix | Delete
// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991)
[7040] Fix | Delete
boxSizingNeeded = scrollboxSizeBuggy || extra,
[7041] Fix | Delete
isBorderBox = boxSizingNeeded &&
[7042] Fix | Delete
jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
[7043] Fix | Delete
subtract = extra ?
[7044] Fix | Delete
boxModelAdjustment(
[7045] Fix | Delete
elem,
[7046] Fix | Delete
dimension,
[7047] Fix | Delete
extra,
[7048] Fix | Delete
isBorderBox,
[7049] Fix | Delete
styles
[7050] Fix | Delete
) :
[7051] Fix | Delete
0;
[7052] Fix | Delete
[7053] Fix | Delete
// Account for unreliable border-box dimensions by comparing offset* to computed and
[7054] Fix | Delete
// faking a content-box to get border and padding (gh-3699)
[7055] Fix | Delete
if ( isBorderBox && scrollboxSizeBuggy ) {
[7056] Fix | Delete
subtract -= Math.ceil(
[7057] Fix | Delete
elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
[7058] Fix | Delete
parseFloat( styles[ dimension ] ) -
[7059] Fix | Delete
boxModelAdjustment( elem, dimension, "border", false, styles ) -
[7060] Fix | Delete
0.5
[7061] Fix | Delete
);
[7062] Fix | Delete
}
[7063] Fix | Delete
[7064] Fix | Delete
// Convert to pixels if value adjustment is needed
[7065] Fix | Delete
if ( subtract && ( matches = rcssNum.exec( value ) ) &&
[7066] Fix | Delete
( matches[ 3 ] || "px" ) !== "px" ) {
[7067] Fix | Delete
[7068] Fix | Delete
elem.style[ dimension ] = value;
[7069] Fix | Delete
value = jQuery.css( elem, dimension );
[7070] Fix | Delete
}
[7071] Fix | Delete
[7072] Fix | Delete
return setPositiveNumber( elem, value, subtract );
[7073] Fix | Delete
}
[7074] Fix | Delete
};
[7075] Fix | Delete
} );
[7076] Fix | Delete
[7077] Fix | Delete
jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
[7078] Fix | Delete
function( elem, computed ) {
[7079] Fix | Delete
if ( computed ) {
[7080] Fix | Delete
return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
[7081] Fix | Delete
elem.getBoundingClientRect().left -
[7082] Fix | Delete
swap( elem, { marginLeft: 0 }, function() {
[7083] Fix | Delete
return elem.getBoundingClientRect().left;
[7084] Fix | Delete
} )
[7085] Fix | Delete
) + "px";
[7086] Fix | Delete
}
[7087] Fix | Delete
}
[7088] Fix | Delete
);
[7089] Fix | Delete
[7090] Fix | Delete
// These hooks are used by animate to expand properties
[7091] Fix | Delete
jQuery.each( {
[7092] Fix | Delete
margin: "",
[7093] Fix | Delete
padding: "",
[7094] Fix | Delete
border: "Width"
[7095] Fix | Delete
}, function( prefix, suffix ) {
[7096] Fix | Delete
jQuery.cssHooks[ prefix + suffix ] = {
[7097] Fix | Delete
expand: function( value ) {
[7098] Fix | Delete
var i = 0,
[7099] Fix | Delete
expanded = {},
[7100] Fix | Delete
[7101] Fix | Delete
// Assumes a single number if not a string
[7102] Fix | Delete
parts = typeof value === "string" ? value.split( " " ) : [ value ];
[7103] Fix | Delete
[7104] Fix | Delete
for ( ; i < 4; i++ ) {
[7105] Fix | Delete
expanded[ prefix + cssExpand[ i ] + suffix ] =
[7106] Fix | Delete
parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
[7107] Fix | Delete
}
[7108] Fix | Delete
[7109] Fix | Delete
return expanded;
[7110] Fix | Delete
}
[7111] Fix | Delete
};
[7112] Fix | Delete
[7113] Fix | Delete
if ( prefix !== "margin" ) {
[7114] Fix | Delete
jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
[7115] Fix | Delete
}
[7116] Fix | Delete
} );
[7117] Fix | Delete
[7118] Fix | Delete
jQuery.fn.extend( {
[7119] Fix | Delete
css: function( name, value ) {
[7120] Fix | Delete
return access( this, function( elem, name, value ) {
[7121] Fix | Delete
var styles, len,
[7122] Fix | Delete
map = {},
[7123] Fix | Delete
i = 0;
[7124] Fix | Delete
[7125] Fix | Delete
if ( Array.isArray( name ) ) {
[7126] Fix | Delete
styles = getStyles( elem );
[7127] Fix | Delete
len = name.length;
[7128] Fix | Delete
[7129] Fix | Delete
for ( ; i < len; i++ ) {
[7130] Fix | Delete
map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
[7131] Fix | Delete
}
[7132] Fix | Delete
[7133] Fix | Delete
return map;
[7134] Fix | Delete
}
[7135] Fix | Delete
[7136] Fix | Delete
return value !== undefined ?
[7137] Fix | Delete
jQuery.style( elem, name, value ) :
[7138] Fix | Delete
jQuery.css( elem, name );
[7139] Fix | Delete
}, name, value, arguments.length > 1 );
[7140] Fix | Delete
}
[7141] Fix | Delete
} );
[7142] Fix | Delete
[7143] Fix | Delete
[7144] Fix | Delete
function Tween( elem, options, prop, end, easing ) {
[7145] Fix | Delete
return new Tween.prototype.init( elem, options, prop, end, easing );
[7146] Fix | Delete
}
[7147] Fix | Delete
jQuery.Tween = Tween;
[7148] Fix | Delete
[7149] Fix | Delete
Tween.prototype = {
[7150] Fix | Delete
constructor: Tween,
[7151] Fix | Delete
init: function( elem, options, prop, end, easing, unit ) {
[7152] Fix | Delete
this.elem = elem;
[7153] Fix | Delete
this.prop = prop;
[7154] Fix | Delete
this.easing = easing || jQuery.easing._default;
[7155] Fix | Delete
this.options = options;
[7156] Fix | Delete
this.start = this.now = this.cur();
[7157] Fix | Delete
this.end = end;
[7158] Fix | Delete
this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
[7159] Fix | Delete
},
[7160] Fix | Delete
cur: function() {
[7161] Fix | Delete
var hooks = Tween.propHooks[ this.prop ];
[7162] Fix | Delete
[7163] Fix | Delete
return hooks && hooks.get ?
[7164] Fix | Delete
hooks.get( this ) :
[7165] Fix | Delete
Tween.propHooks._default.get( this );
[7166] Fix | Delete
},
[7167] Fix | Delete
run: function( percent ) {
[7168] Fix | Delete
var eased,
[7169] Fix | Delete
hooks = Tween.propHooks[ this.prop ];
[7170] Fix | Delete
[7171] Fix | Delete
if ( this.options.duration ) {
[7172] Fix | Delete
this.pos = eased = jQuery.easing[ this.easing ](
[7173] Fix | Delete
percent, this.options.duration * percent, 0, 1, this.options.duration
[7174] Fix | Delete
);
[7175] Fix | Delete
} else {
[7176] Fix | Delete
this.pos = eased = percent;
[7177] Fix | Delete
}
[7178] Fix | Delete
this.now = ( this.end - this.start ) * eased + this.start;
[7179] Fix | Delete
[7180] Fix | Delete
if ( this.options.step ) {
[7181] Fix | Delete
this.options.step.call( this.elem, this.now, this );
[7182] Fix | Delete
}
[7183] Fix | Delete
[7184] Fix | Delete
if ( hooks && hooks.set ) {
[7185] Fix | Delete
hooks.set( this );
[7186] Fix | Delete
} else {
[7187] Fix | Delete
Tween.propHooks._default.set( this );
[7188] Fix | Delete
}
[7189] Fix | Delete
return this;
[7190] Fix | Delete
}
[7191] Fix | Delete
};
[7192] Fix | Delete
[7193] Fix | Delete
Tween.prototype.init.prototype = Tween.prototype;
[7194] Fix | Delete
[7195] Fix | Delete
Tween.propHooks = {
[7196] Fix | Delete
_default: {
[7197] Fix | Delete
get: function( tween ) {
[7198] Fix | Delete
var result;
[7199] Fix | Delete
[7200] Fix | Delete
// Use a property on the element directly when it is not a DOM element,
[7201] Fix | Delete
// or when there is no matching style property that exists.
[7202] Fix | Delete
if ( tween.elem.nodeType !== 1 ||
[7203] Fix | Delete
tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
[7204] Fix | Delete
return tween.elem[ tween.prop ];
[7205] Fix | Delete
}
[7206] Fix | Delete
[7207] Fix | Delete
// Passing an empty string as a 3rd parameter to .css will automatically
[7208] Fix | Delete
// attempt a parseFloat and fallback to a string if the parse fails.
[7209] Fix | Delete
// Simple values such as "10px" are parsed to Float;
[7210] Fix | Delete
// complex values such as "rotate(1rad)" are returned as-is.
[7211] Fix | Delete
result = jQuery.css( tween.elem, tween.prop, "" );
[7212] Fix | Delete
[7213] Fix | Delete
// Empty strings, null, undefined and "auto" are converted to 0.
[7214] Fix | Delete
return !result || result === "auto" ? 0 : result;
[7215] Fix | Delete
},
[7216] Fix | Delete
set: function( tween ) {
[7217] Fix | Delete
[7218] Fix | Delete
// Use step hook for back compat.
[7219] Fix | Delete
// Use cssHook if its there.
[7220] Fix | Delete
// Use .style if available and use plain properties where available.
[7221] Fix | Delete
if ( jQuery.fx.step[ tween.prop ] ) {
[7222] Fix | Delete
jQuery.fx.step[ tween.prop ]( tween );
[7223] Fix | Delete
} else if ( tween.elem.nodeType === 1 && (
[7224] Fix | Delete
jQuery.cssHooks[ tween.prop ] ||
[7225] Fix | Delete
tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) {
[7226] Fix | Delete
jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
[7227] Fix | Delete
} else {
[7228] Fix | Delete
tween.elem[ tween.prop ] = tween.now;
[7229] Fix | Delete
}
[7230] Fix | Delete
}
[7231] Fix | Delete
}
[7232] Fix | Delete
};
[7233] Fix | Delete
[7234] Fix | Delete
// Support: IE <=9 only
[7235] Fix | Delete
// Panic based approach to setting things on disconnected nodes
[7236] Fix | Delete
Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
[7237] Fix | Delete
set: function( tween ) {
[7238] Fix | Delete
if ( tween.elem.nodeType && tween.elem.parentNode ) {
[7239] Fix | Delete
tween.elem[ tween.prop ] = tween.now;
[7240] Fix | Delete
}
[7241] Fix | Delete
}
[7242] Fix | Delete
};
[7243] Fix | Delete
[7244] Fix | Delete
jQuery.easing = {
[7245] Fix | Delete
linear: function( p ) {
[7246] Fix | Delete
return p;
[7247] Fix | Delete
},
[7248] Fix | Delete
swing: function( p ) {
[7249] Fix | Delete
return 0.5 - Math.cos( p * Math.PI ) / 2;
[7250] Fix | Delete
},
[7251] Fix | Delete
_default: "swing"
[7252] Fix | Delete
};
[7253] Fix | Delete
[7254] Fix | Delete
jQuery.fx = Tween.prototype.init;
[7255] Fix | Delete
[7256] Fix | Delete
// Back compat <1.8 extension point
[7257] Fix | Delete
jQuery.fx.step = {};
[7258] Fix | Delete
[7259] Fix | Delete
[7260] Fix | Delete
[7261] Fix | Delete
[7262] Fix | Delete
var
[7263] Fix | Delete
fxNow, inProgress,
[7264] Fix | Delete
rfxtypes = /^(?:toggle|show|hide)$/,
[7265] Fix | Delete
rrun = /queueHooks$/;
[7266] Fix | Delete
[7267] Fix | Delete
function schedule() {
[7268] Fix | Delete
if ( inProgress ) {
[7269] Fix | Delete
if ( document.hidden === false && window.requestAnimationFrame ) {
[7270] Fix | Delete
window.requestAnimationFrame( schedule );
[7271] Fix | Delete
} else {
[7272] Fix | Delete
window.setTimeout( schedule, jQuery.fx.interval );
[7273] Fix | Delete
}
[7274] Fix | Delete
[7275] Fix | Delete
jQuery.fx.tick();
[7276] Fix | Delete
}
[7277] Fix | Delete
}
[7278] Fix | Delete
[7279] Fix | Delete
// Animations created synchronously will run synchronously
[7280] Fix | Delete
function createFxNow() {
[7281] Fix | Delete
window.setTimeout( function() {
[7282] Fix | Delete
fxNow = undefined;
[7283] Fix | Delete
} );
[7284] Fix | Delete
return ( fxNow = Date.now() );
[7285] Fix | Delete
}
[7286] Fix | Delete
[7287] Fix | Delete
// Generate parameters to create a standard animation
[7288] Fix | Delete
function genFx( type, includeWidth ) {
[7289] Fix | Delete
var which,
[7290] Fix | Delete
i = 0,
[7291] Fix | Delete
attrs = { height: type };
[7292] Fix | Delete
[7293] Fix | Delete
// If we include width, step value is 1 to do all cssExpand values,
[7294] Fix | Delete
// otherwise step value is 2 to skip over Left and Right
[7295] Fix | Delete
includeWidth = includeWidth ? 1 : 0;
[7296] Fix | Delete
for ( ; i < 4; i += 2 - includeWidth ) {
[7297] Fix | Delete
which = cssExpand[ i ];
[7298] Fix | Delete
attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
[7299] Fix | Delete
}
[7300] Fix | Delete
[7301] Fix | Delete
if ( includeWidth ) {
[7302] Fix | Delete
attrs.opacity = attrs.width = type;
[7303] Fix | Delete
}
[7304] Fix | Delete
[7305] Fix | Delete
return attrs;
[7306] Fix | Delete
}
[7307] Fix | Delete
[7308] Fix | Delete
function createTween( value, prop, animation ) {
[7309] Fix | Delete
var tween,
[7310] Fix | Delete
collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
[7311] Fix | Delete
index = 0,
[7312] Fix | Delete
length = collection.length;
[7313] Fix | Delete
for ( ; index < length; index++ ) {
[7314] Fix | Delete
if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
[7315] Fix | Delete
[7316] Fix | Delete
// We're done with this property
[7317] Fix | Delete
return tween;
[7318] Fix | Delete
}
[7319] Fix | Delete
}
[7320] Fix | Delete
}
[7321] Fix | Delete
[7322] Fix | Delete
function defaultPrefilter( elem, props, opts ) {
[7323] Fix | Delete
var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
[7324] Fix | Delete
isBox = "width" in props || "height" in props,
[7325] Fix | Delete
anim = this,
[7326] Fix | Delete
orig = {},
[7327] Fix | Delete
style = elem.style,
[7328] Fix | Delete
hidden = elem.nodeType && isHiddenWithinTree( elem ),
[7329] Fix | Delete
dataShow = dataPriv.get( elem, "fxshow" );
[7330] Fix | Delete
[7331] Fix | Delete
// Queue-skipping animations hijack the fx hooks
[7332] Fix | Delete
if ( !opts.queue ) {
[7333] Fix | Delete
hooks = jQuery._queueHooks( elem, "fx" );
[7334] Fix | Delete
if ( hooks.unqueued == null ) {
[7335] Fix | Delete
hooks.unqueued = 0;
[7336] Fix | Delete
oldfire = hooks.empty.fire;
[7337] Fix | Delete
hooks.empty.fire = function() {
[7338] Fix | Delete
if ( !hooks.unqueued ) {
[7339] Fix | Delete
oldfire();
[7340] Fix | Delete
}
[7341] Fix | Delete
};
[7342] Fix | Delete
}
[7343] Fix | Delete
hooks.unqueued++;
[7344] Fix | Delete
[7345] Fix | Delete
anim.always( function() {
[7346] Fix | Delete
[7347] Fix | Delete
// Ensure the complete handler is called before this completes
[7348] Fix | Delete
anim.always( function() {
[7349] Fix | Delete
hooks.unqueued--;
[7350] Fix | Delete
if ( !jQuery.queue( elem, "fx" ).length ) {
[7351] Fix | Delete
hooks.empty.fire();
[7352] Fix | Delete
}
[7353] Fix | Delete
} );
[7354] Fix | Delete
} );
[7355] Fix | Delete
}
[7356] Fix | Delete
[7357] Fix | Delete
// Detect show/hide animations
[7358] Fix | Delete
for ( prop in props ) {
[7359] Fix | Delete
value = props[ prop ];
[7360] Fix | Delete
if ( rfxtypes.test( value ) ) {
[7361] Fix | Delete
delete props[ prop ];
[7362] Fix | Delete
toggle = toggle || value === "toggle";
[7363] Fix | Delete
if ( value === ( hidden ? "hide" : "show" ) ) {
[7364] Fix | Delete
[7365] Fix | Delete
// Pretend to be hidden if this is a "show" and
[7366] Fix | Delete
// there is still data from a stopped show/hide
[7367] Fix | Delete
if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
[7368] Fix | Delete
hidden = true;
[7369] Fix | Delete
[7370] Fix | Delete
// Ignore all other no-op show/hide data
[7371] Fix | Delete
} else {
[7372] Fix | Delete
continue;
[7373] Fix | Delete
}
[7374] Fix | Delete
}
[7375] Fix | Delete
orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
[7376] Fix | Delete
}
[7377] Fix | Delete
}
[7378] Fix | Delete
[7379] Fix | Delete
// Bail out if this is a no-op like .hide().hide()
[7380] Fix | Delete
propTween = !jQuery.isEmptyObject( props );
[7381] Fix | Delete
if ( !propTween && jQuery.isEmptyObject( orig ) ) {
[7382] Fix | Delete
return;
[7383] Fix | Delete
}
[7384] Fix | Delete
[7385] Fix | Delete
// Restrict "overflow" and "display" styles during box animations
[7386] Fix | Delete
if ( isBox && elem.nodeType === 1 ) {
[7387] Fix | Delete
[7388] Fix | Delete
// Support: IE <=9 - 11, Edge 12 - 15
[7389] Fix | Delete
// Record all 3 overflow attributes because IE does not infer the shorthand
[7390] Fix | Delete
// from identically-valued overflowX and overflowY and Edge just mirrors
[7391] Fix | Delete
// the overflowX value there.
[7392] Fix | Delete
opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
[7393] Fix | Delete
[7394] Fix | Delete
// Identify a display type, preferring old show/hide data over the CSS cascade
[7395] Fix | Delete
restoreDisplay = dataShow && dataShow.display;
[7396] Fix | Delete
if ( restoreDisplay == null ) {
[7397] Fix | Delete
restoreDisplay = dataPriv.get( elem, "display" );
[7398] Fix | Delete
}
[7399] Fix | Delete
display = jQuery.css( elem, "display" );
[7400] Fix | Delete
if ( display === "none" ) {
[7401] Fix | Delete
if ( restoreDisplay ) {
[7402] Fix | Delete
display = restoreDisplay;
[7403] Fix | Delete
} else {
[7404] Fix | Delete
[7405] Fix | Delete
// Get nonempty value(s) by temporarily forcing visibility
[7406] Fix | Delete
showHide( [ elem ], true );
[7407] Fix | Delete
restoreDisplay = elem.style.display || restoreDisplay;
[7408] Fix | Delete
display = jQuery.css( elem, "display" );
[7409] Fix | Delete
showHide( [ elem ] );
[7410] Fix | Delete
}
[7411] Fix | Delete
}
[7412] Fix | Delete
[7413] Fix | Delete
// Animate inline elements as inline-block
[7414] Fix | Delete
if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) {
[7415] Fix | Delete
if ( jQuery.css( elem, "float" ) === "none" ) {
[7416] Fix | Delete
[7417] Fix | Delete
// Restore the original display value at the end of pure show/hide animations
[7418] Fix | Delete
if ( !propTween ) {
[7419] Fix | Delete
anim.done( function() {
[7420] Fix | Delete
style.display = restoreDisplay;
[7421] Fix | Delete
} );
[7422] Fix | Delete
if ( restoreDisplay == null ) {
[7423] Fix | Delete
display = style.display;
[7424] Fix | Delete
restoreDisplay = display === "none" ? "" : display;
[7425] Fix | Delete
}
[7426] Fix | Delete
}
[7427] Fix | Delete
style.display = "inline-block";
[7428] Fix | Delete
}
[7429] Fix | Delete
}
[7430] Fix | Delete
}
[7431] Fix | Delete
[7432] Fix | Delete
if ( opts.overflow ) {
[7433] Fix | Delete
style.overflow = "hidden";
[7434] Fix | Delete
anim.always( function() {
[7435] Fix | Delete
style.overflow = opts.overflow[ 0 ];
[7436] Fix | Delete
style.overflowX = opts.overflow[ 1 ];
[7437] Fix | Delete
style.overflowY = opts.overflow[ 2 ];
[7438] Fix | Delete
} );
[7439] Fix | Delete
}
[7440] Fix | Delete
[7441] Fix | Delete
// Implement show/hide animations
[7442] Fix | Delete
propTween = false;
[7443] Fix | Delete
for ( prop in orig ) {
[7444] Fix | Delete
[7445] Fix | Delete
// General show/hide setup for this element animation
[7446] Fix | Delete
if ( !propTween ) {
[7447] Fix | Delete
if ( dataShow ) {
[7448] Fix | Delete
if ( "hidden" in dataShow ) {
[7449] Fix | Delete
hidden = dataShow.hidden;
[7450] Fix | Delete
}
[7451] Fix | Delete
} else {
[7452] Fix | Delete
dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } );
[7453] Fix | Delete
}
[7454] Fix | Delete
[7455] Fix | Delete
// Store hidden/visible for toggle so `.stop().toggle()` "reverses"
[7456] Fix | Delete
if ( toggle ) {
[7457] Fix | Delete
dataShow.hidden = !hidden;
[7458] Fix | Delete
}
[7459] Fix | Delete
[7460] Fix | Delete
// Show elements before animating them
[7461] Fix | Delete
if ( hidden ) {
[7462] Fix | Delete
showHide( [ elem ], true );
[7463] Fix | Delete
}
[7464] Fix | Delete
[7465] Fix | Delete
/* eslint-disable no-loop-func */
[7466] Fix | Delete
[7467] Fix | Delete
anim.done( function() {
[7468] Fix | Delete
[7469] Fix | Delete
/* eslint-enable no-loop-func */
[7470] Fix | Delete
[7471] Fix | Delete
// The final step of a "hide" animation is actually hiding the element
[7472] Fix | Delete
if ( !hidden ) {
[7473] Fix | Delete
showHide( [ elem ] );
[7474] Fix | Delete
}
[7475] Fix | Delete
dataPriv.remove( elem, "fxshow" );
[7476] Fix | Delete
for ( prop in orig ) {
[7477] Fix | Delete
jQuery.style( elem, prop, orig[ prop ] );
[7478] Fix | Delete
}
[7479] Fix | Delete
} );
[7480] Fix | Delete
}
[7481] Fix | Delete
[7482] Fix | Delete
// Per-property setup
[7483] Fix | Delete
propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
[7484] Fix | Delete
if ( !( prop in dataShow ) ) {
[7485] Fix | Delete
dataShow[ prop ] = propTween.start;
[7486] Fix | Delete
if ( hidden ) {
[7487] Fix | Delete
propTween.end = propTween.start;
[7488] Fix | Delete
propTween.start = 0;
[7489] Fix | Delete
}
[7490] Fix | Delete
}
[7491] Fix | Delete
}
[7492] Fix | Delete
}
[7493] Fix | Delete
[7494] Fix | Delete
function propFilter( props, specialEasing ) {
[7495] Fix | Delete
var index, name, easing, value, hooks;
[7496] Fix | Delete
[7497] Fix | Delete
// camelCase, specialEasing and expand cssHook pass
[7498] Fix | Delete
for ( index in props ) {
[7499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function