Edit File by line
/home/barbar84/www/wp-inclu.../js/jquery
File: jquery.js
name = camelCase( index );
[7500] Fix | Delete
easing = specialEasing[ name ];
[7501] Fix | Delete
value = props[ index ];
[7502] Fix | Delete
if ( Array.isArray( value ) ) {
[7503] Fix | Delete
easing = value[ 1 ];
[7504] Fix | Delete
value = props[ index ] = value[ 0 ];
[7505] Fix | Delete
}
[7506] Fix | Delete
[7507] Fix | Delete
if ( index !== name ) {
[7508] Fix | Delete
props[ name ] = value;
[7509] Fix | Delete
delete props[ index ];
[7510] Fix | Delete
}
[7511] Fix | Delete
[7512] Fix | Delete
hooks = jQuery.cssHooks[ name ];
[7513] Fix | Delete
if ( hooks && "expand" in hooks ) {
[7514] Fix | Delete
value = hooks.expand( value );
[7515] Fix | Delete
delete props[ name ];
[7516] Fix | Delete
[7517] Fix | Delete
// Not quite $.extend, this won't overwrite existing keys.
[7518] Fix | Delete
// Reusing 'index' because we have the correct "name"
[7519] Fix | Delete
for ( index in value ) {
[7520] Fix | Delete
if ( !( index in props ) ) {
[7521] Fix | Delete
props[ index ] = value[ index ];
[7522] Fix | Delete
specialEasing[ index ] = easing;
[7523] Fix | Delete
}
[7524] Fix | Delete
}
[7525] Fix | Delete
} else {
[7526] Fix | Delete
specialEasing[ name ] = easing;
[7527] Fix | Delete
}
[7528] Fix | Delete
}
[7529] Fix | Delete
}
[7530] Fix | Delete
[7531] Fix | Delete
function Animation( elem, properties, options ) {
[7532] Fix | Delete
var result,
[7533] Fix | Delete
stopped,
[7534] Fix | Delete
index = 0,
[7535] Fix | Delete
length = Animation.prefilters.length,
[7536] Fix | Delete
deferred = jQuery.Deferred().always( function() {
[7537] Fix | Delete
[7538] Fix | Delete
// Don't match elem in the :animated selector
[7539] Fix | Delete
delete tick.elem;
[7540] Fix | Delete
} ),
[7541] Fix | Delete
tick = function() {
[7542] Fix | Delete
if ( stopped ) {
[7543] Fix | Delete
return false;
[7544] Fix | Delete
}
[7545] Fix | Delete
var currentTime = fxNow || createFxNow(),
[7546] Fix | Delete
remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
[7547] Fix | Delete
[7548] Fix | Delete
// Support: Android 2.3 only
[7549] Fix | Delete
// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
[7550] Fix | Delete
temp = remaining / animation.duration || 0,
[7551] Fix | Delete
percent = 1 - temp,
[7552] Fix | Delete
index = 0,
[7553] Fix | Delete
length = animation.tweens.length;
[7554] Fix | Delete
[7555] Fix | Delete
for ( ; index < length; index++ ) {
[7556] Fix | Delete
animation.tweens[ index ].run( percent );
[7557] Fix | Delete
}
[7558] Fix | Delete
[7559] Fix | Delete
deferred.notifyWith( elem, [ animation, percent, remaining ] );
[7560] Fix | Delete
[7561] Fix | Delete
// If there's more to do, yield
[7562] Fix | Delete
if ( percent < 1 && length ) {
[7563] Fix | Delete
return remaining;
[7564] Fix | Delete
}
[7565] Fix | Delete
[7566] Fix | Delete
// If this was an empty animation, synthesize a final progress notification
[7567] Fix | Delete
if ( !length ) {
[7568] Fix | Delete
deferred.notifyWith( elem, [ animation, 1, 0 ] );
[7569] Fix | Delete
}
[7570] Fix | Delete
[7571] Fix | Delete
// Resolve the animation and report its conclusion
[7572] Fix | Delete
deferred.resolveWith( elem, [ animation ] );
[7573] Fix | Delete
return false;
[7574] Fix | Delete
},
[7575] Fix | Delete
animation = deferred.promise( {
[7576] Fix | Delete
elem: elem,
[7577] Fix | Delete
props: jQuery.extend( {}, properties ),
[7578] Fix | Delete
opts: jQuery.extend( true, {
[7579] Fix | Delete
specialEasing: {},
[7580] Fix | Delete
easing: jQuery.easing._default
[7581] Fix | Delete
}, options ),
[7582] Fix | Delete
originalProperties: properties,
[7583] Fix | Delete
originalOptions: options,
[7584] Fix | Delete
startTime: fxNow || createFxNow(),
[7585] Fix | Delete
duration: options.duration,
[7586] Fix | Delete
tweens: [],
[7587] Fix | Delete
createTween: function( prop, end ) {
[7588] Fix | Delete
var tween = jQuery.Tween( elem, animation.opts, prop, end,
[7589] Fix | Delete
animation.opts.specialEasing[ prop ] || animation.opts.easing );
[7590] Fix | Delete
animation.tweens.push( tween );
[7591] Fix | Delete
return tween;
[7592] Fix | Delete
},
[7593] Fix | Delete
stop: function( gotoEnd ) {
[7594] Fix | Delete
var index = 0,
[7595] Fix | Delete
[7596] Fix | Delete
// If we are going to the end, we want to run all the tweens
[7597] Fix | Delete
// otherwise we skip this part
[7598] Fix | Delete
length = gotoEnd ? animation.tweens.length : 0;
[7599] Fix | Delete
if ( stopped ) {
[7600] Fix | Delete
return this;
[7601] Fix | Delete
}
[7602] Fix | Delete
stopped = true;
[7603] Fix | Delete
for ( ; index < length; index++ ) {
[7604] Fix | Delete
animation.tweens[ index ].run( 1 );
[7605] Fix | Delete
}
[7606] Fix | Delete
[7607] Fix | Delete
// Resolve when we played the last frame; otherwise, reject
[7608] Fix | Delete
if ( gotoEnd ) {
[7609] Fix | Delete
deferred.notifyWith( elem, [ animation, 1, 0 ] );
[7610] Fix | Delete
deferred.resolveWith( elem, [ animation, gotoEnd ] );
[7611] Fix | Delete
} else {
[7612] Fix | Delete
deferred.rejectWith( elem, [ animation, gotoEnd ] );
[7613] Fix | Delete
}
[7614] Fix | Delete
return this;
[7615] Fix | Delete
}
[7616] Fix | Delete
} ),
[7617] Fix | Delete
props = animation.props;
[7618] Fix | Delete
[7619] Fix | Delete
propFilter( props, animation.opts.specialEasing );
[7620] Fix | Delete
[7621] Fix | Delete
for ( ; index < length; index++ ) {
[7622] Fix | Delete
result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
[7623] Fix | Delete
if ( result ) {
[7624] Fix | Delete
if ( isFunction( result.stop ) ) {
[7625] Fix | Delete
jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
[7626] Fix | Delete
result.stop.bind( result );
[7627] Fix | Delete
}
[7628] Fix | Delete
return result;
[7629] Fix | Delete
}
[7630] Fix | Delete
}
[7631] Fix | Delete
[7632] Fix | Delete
jQuery.map( props, createTween, animation );
[7633] Fix | Delete
[7634] Fix | Delete
if ( isFunction( animation.opts.start ) ) {
[7635] Fix | Delete
animation.opts.start.call( elem, animation );
[7636] Fix | Delete
}
[7637] Fix | Delete
[7638] Fix | Delete
// Attach callbacks from options
[7639] Fix | Delete
animation
[7640] Fix | Delete
.progress( animation.opts.progress )
[7641] Fix | Delete
.done( animation.opts.done, animation.opts.complete )
[7642] Fix | Delete
.fail( animation.opts.fail )
[7643] Fix | Delete
.always( animation.opts.always );
[7644] Fix | Delete
[7645] Fix | Delete
jQuery.fx.timer(
[7646] Fix | Delete
jQuery.extend( tick, {
[7647] Fix | Delete
elem: elem,
[7648] Fix | Delete
anim: animation,
[7649] Fix | Delete
queue: animation.opts.queue
[7650] Fix | Delete
} )
[7651] Fix | Delete
);
[7652] Fix | Delete
[7653] Fix | Delete
return animation;
[7654] Fix | Delete
}
[7655] Fix | Delete
[7656] Fix | Delete
jQuery.Animation = jQuery.extend( Animation, {
[7657] Fix | Delete
[7658] Fix | Delete
tweeners: {
[7659] Fix | Delete
"*": [ function( prop, value ) {
[7660] Fix | Delete
var tween = this.createTween( prop, value );
[7661] Fix | Delete
adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
[7662] Fix | Delete
return tween;
[7663] Fix | Delete
} ]
[7664] Fix | Delete
},
[7665] Fix | Delete
[7666] Fix | Delete
tweener: function( props, callback ) {
[7667] Fix | Delete
if ( isFunction( props ) ) {
[7668] Fix | Delete
callback = props;
[7669] Fix | Delete
props = [ "*" ];
[7670] Fix | Delete
} else {
[7671] Fix | Delete
props = props.match( rnothtmlwhite );
[7672] Fix | Delete
}
[7673] Fix | Delete
[7674] Fix | Delete
var prop,
[7675] Fix | Delete
index = 0,
[7676] Fix | Delete
length = props.length;
[7677] Fix | Delete
[7678] Fix | Delete
for ( ; index < length; index++ ) {
[7679] Fix | Delete
prop = props[ index ];
[7680] Fix | Delete
Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
[7681] Fix | Delete
Animation.tweeners[ prop ].unshift( callback );
[7682] Fix | Delete
}
[7683] Fix | Delete
},
[7684] Fix | Delete
[7685] Fix | Delete
prefilters: [ defaultPrefilter ],
[7686] Fix | Delete
[7687] Fix | Delete
prefilter: function( callback, prepend ) {
[7688] Fix | Delete
if ( prepend ) {
[7689] Fix | Delete
Animation.prefilters.unshift( callback );
[7690] Fix | Delete
} else {
[7691] Fix | Delete
Animation.prefilters.push( callback );
[7692] Fix | Delete
}
[7693] Fix | Delete
}
[7694] Fix | Delete
} );
[7695] Fix | Delete
[7696] Fix | Delete
jQuery.speed = function( speed, easing, fn ) {
[7697] Fix | Delete
var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
[7698] Fix | Delete
complete: fn || !fn && easing ||
[7699] Fix | Delete
isFunction( speed ) && speed,
[7700] Fix | Delete
duration: speed,
[7701] Fix | Delete
easing: fn && easing || easing && !isFunction( easing ) && easing
[7702] Fix | Delete
};
[7703] Fix | Delete
[7704] Fix | Delete
// Go to the end state if fx are off
[7705] Fix | Delete
if ( jQuery.fx.off ) {
[7706] Fix | Delete
opt.duration = 0;
[7707] Fix | Delete
[7708] Fix | Delete
} else {
[7709] Fix | Delete
if ( typeof opt.duration !== "number" ) {
[7710] Fix | Delete
if ( opt.duration in jQuery.fx.speeds ) {
[7711] Fix | Delete
opt.duration = jQuery.fx.speeds[ opt.duration ];
[7712] Fix | Delete
[7713] Fix | Delete
} else {
[7714] Fix | Delete
opt.duration = jQuery.fx.speeds._default;
[7715] Fix | Delete
}
[7716] Fix | Delete
}
[7717] Fix | Delete
}
[7718] Fix | Delete
[7719] Fix | Delete
// Normalize opt.queue - true/undefined/null -> "fx"
[7720] Fix | Delete
if ( opt.queue == null || opt.queue === true ) {
[7721] Fix | Delete
opt.queue = "fx";
[7722] Fix | Delete
}
[7723] Fix | Delete
[7724] Fix | Delete
// Queueing
[7725] Fix | Delete
opt.old = opt.complete;
[7726] Fix | Delete
[7727] Fix | Delete
opt.complete = function() {
[7728] Fix | Delete
if ( isFunction( opt.old ) ) {
[7729] Fix | Delete
opt.old.call( this );
[7730] Fix | Delete
}
[7731] Fix | Delete
[7732] Fix | Delete
if ( opt.queue ) {
[7733] Fix | Delete
jQuery.dequeue( this, opt.queue );
[7734] Fix | Delete
}
[7735] Fix | Delete
};
[7736] Fix | Delete
[7737] Fix | Delete
return opt;
[7738] Fix | Delete
};
[7739] Fix | Delete
[7740] Fix | Delete
jQuery.fn.extend( {
[7741] Fix | Delete
fadeTo: function( speed, to, easing, callback ) {
[7742] Fix | Delete
[7743] Fix | Delete
// Show any hidden elements after setting opacity to 0
[7744] Fix | Delete
return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show()
[7745] Fix | Delete
[7746] Fix | Delete
// Animate to the value specified
[7747] Fix | Delete
.end().animate( { opacity: to }, speed, easing, callback );
[7748] Fix | Delete
},
[7749] Fix | Delete
animate: function( prop, speed, easing, callback ) {
[7750] Fix | Delete
var empty = jQuery.isEmptyObject( prop ),
[7751] Fix | Delete
optall = jQuery.speed( speed, easing, callback ),
[7752] Fix | Delete
doAnimation = function() {
[7753] Fix | Delete
[7754] Fix | Delete
// Operate on a copy of prop so per-property easing won't be lost
[7755] Fix | Delete
var anim = Animation( this, jQuery.extend( {}, prop ), optall );
[7756] Fix | Delete
[7757] Fix | Delete
// Empty animations, or finishing resolves immediately
[7758] Fix | Delete
if ( empty || dataPriv.get( this, "finish" ) ) {
[7759] Fix | Delete
anim.stop( true );
[7760] Fix | Delete
}
[7761] Fix | Delete
};
[7762] Fix | Delete
doAnimation.finish = doAnimation;
[7763] Fix | Delete
[7764] Fix | Delete
return empty || optall.queue === false ?
[7765] Fix | Delete
this.each( doAnimation ) :
[7766] Fix | Delete
this.queue( optall.queue, doAnimation );
[7767] Fix | Delete
},
[7768] Fix | Delete
stop: function( type, clearQueue, gotoEnd ) {
[7769] Fix | Delete
var stopQueue = function( hooks ) {
[7770] Fix | Delete
var stop = hooks.stop;
[7771] Fix | Delete
delete hooks.stop;
[7772] Fix | Delete
stop( gotoEnd );
[7773] Fix | Delete
};
[7774] Fix | Delete
[7775] Fix | Delete
if ( typeof type !== "string" ) {
[7776] Fix | Delete
gotoEnd = clearQueue;
[7777] Fix | Delete
clearQueue = type;
[7778] Fix | Delete
type = undefined;
[7779] Fix | Delete
}
[7780] Fix | Delete
if ( clearQueue ) {
[7781] Fix | Delete
this.queue( type || "fx", [] );
[7782] Fix | Delete
}
[7783] Fix | Delete
[7784] Fix | Delete
return this.each( function() {
[7785] Fix | Delete
var dequeue = true,
[7786] Fix | Delete
index = type != null && type + "queueHooks",
[7787] Fix | Delete
timers = jQuery.timers,
[7788] Fix | Delete
data = dataPriv.get( this );
[7789] Fix | Delete
[7790] Fix | Delete
if ( index ) {
[7791] Fix | Delete
if ( data[ index ] && data[ index ].stop ) {
[7792] Fix | Delete
stopQueue( data[ index ] );
[7793] Fix | Delete
}
[7794] Fix | Delete
} else {
[7795] Fix | Delete
for ( index in data ) {
[7796] Fix | Delete
if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
[7797] Fix | Delete
stopQueue( data[ index ] );
[7798] Fix | Delete
}
[7799] Fix | Delete
}
[7800] Fix | Delete
}
[7801] Fix | Delete
[7802] Fix | Delete
for ( index = timers.length; index--; ) {
[7803] Fix | Delete
if ( timers[ index ].elem === this &&
[7804] Fix | Delete
( type == null || timers[ index ].queue === type ) ) {
[7805] Fix | Delete
[7806] Fix | Delete
timers[ index ].anim.stop( gotoEnd );
[7807] Fix | Delete
dequeue = false;
[7808] Fix | Delete
timers.splice( index, 1 );
[7809] Fix | Delete
}
[7810] Fix | Delete
}
[7811] Fix | Delete
[7812] Fix | Delete
// Start the next in the queue if the last step wasn't forced.
[7813] Fix | Delete
// Timers currently will call their complete callbacks, which
[7814] Fix | Delete
// will dequeue but only if they were gotoEnd.
[7815] Fix | Delete
if ( dequeue || !gotoEnd ) {
[7816] Fix | Delete
jQuery.dequeue( this, type );
[7817] Fix | Delete
}
[7818] Fix | Delete
} );
[7819] Fix | Delete
},
[7820] Fix | Delete
finish: function( type ) {
[7821] Fix | Delete
if ( type !== false ) {
[7822] Fix | Delete
type = type || "fx";
[7823] Fix | Delete
}
[7824] Fix | Delete
return this.each( function() {
[7825] Fix | Delete
var index,
[7826] Fix | Delete
data = dataPriv.get( this ),
[7827] Fix | Delete
queue = data[ type + "queue" ],
[7828] Fix | Delete
hooks = data[ type + "queueHooks" ],
[7829] Fix | Delete
timers = jQuery.timers,
[7830] Fix | Delete
length = queue ? queue.length : 0;
[7831] Fix | Delete
[7832] Fix | Delete
// Enable finishing flag on private data
[7833] Fix | Delete
data.finish = true;
[7834] Fix | Delete
[7835] Fix | Delete
// Empty the queue first
[7836] Fix | Delete
jQuery.queue( this, type, [] );
[7837] Fix | Delete
[7838] Fix | Delete
if ( hooks && hooks.stop ) {
[7839] Fix | Delete
hooks.stop.call( this, true );
[7840] Fix | Delete
}
[7841] Fix | Delete
[7842] Fix | Delete
// Look for any active animations, and finish them
[7843] Fix | Delete
for ( index = timers.length; index--; ) {
[7844] Fix | Delete
if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
[7845] Fix | Delete
timers[ index ].anim.stop( true );
[7846] Fix | Delete
timers.splice( index, 1 );
[7847] Fix | Delete
}
[7848] Fix | Delete
}
[7849] Fix | Delete
[7850] Fix | Delete
// Look for any animations in the old queue and finish them
[7851] Fix | Delete
for ( index = 0; index < length; index++ ) {
[7852] Fix | Delete
if ( queue[ index ] && queue[ index ].finish ) {
[7853] Fix | Delete
queue[ index ].finish.call( this );
[7854] Fix | Delete
}
[7855] Fix | Delete
}
[7856] Fix | Delete
[7857] Fix | Delete
// Turn off finishing flag
[7858] Fix | Delete
delete data.finish;
[7859] Fix | Delete
} );
[7860] Fix | Delete
}
[7861] Fix | Delete
} );
[7862] Fix | Delete
[7863] Fix | Delete
jQuery.each( [ "toggle", "show", "hide" ], function( _i, name ) {
[7864] Fix | Delete
var cssFn = jQuery.fn[ name ];
[7865] Fix | Delete
jQuery.fn[ name ] = function( speed, easing, callback ) {
[7866] Fix | Delete
return speed == null || typeof speed === "boolean" ?
[7867] Fix | Delete
cssFn.apply( this, arguments ) :
[7868] Fix | Delete
this.animate( genFx( name, true ), speed, easing, callback );
[7869] Fix | Delete
};
[7870] Fix | Delete
} );
[7871] Fix | Delete
[7872] Fix | Delete
// Generate shortcuts for custom animations
[7873] Fix | Delete
jQuery.each( {
[7874] Fix | Delete
slideDown: genFx( "show" ),
[7875] Fix | Delete
slideUp: genFx( "hide" ),
[7876] Fix | Delete
slideToggle: genFx( "toggle" ),
[7877] Fix | Delete
fadeIn: { opacity: "show" },
[7878] Fix | Delete
fadeOut: { opacity: "hide" },
[7879] Fix | Delete
fadeToggle: { opacity: "toggle" }
[7880] Fix | Delete
}, function( name, props ) {
[7881] Fix | Delete
jQuery.fn[ name ] = function( speed, easing, callback ) {
[7882] Fix | Delete
return this.animate( props, speed, easing, callback );
[7883] Fix | Delete
};
[7884] Fix | Delete
} );
[7885] Fix | Delete
[7886] Fix | Delete
jQuery.timers = [];
[7887] Fix | Delete
jQuery.fx.tick = function() {
[7888] Fix | Delete
var timer,
[7889] Fix | Delete
i = 0,
[7890] Fix | Delete
timers = jQuery.timers;
[7891] Fix | Delete
[7892] Fix | Delete
fxNow = Date.now();
[7893] Fix | Delete
[7894] Fix | Delete
for ( ; i < timers.length; i++ ) {
[7895] Fix | Delete
timer = timers[ i ];
[7896] Fix | Delete
[7897] Fix | Delete
// Run the timer and safely remove it when done (allowing for external removal)
[7898] Fix | Delete
if ( !timer() && timers[ i ] === timer ) {
[7899] Fix | Delete
timers.splice( i--, 1 );
[7900] Fix | Delete
}
[7901] Fix | Delete
}
[7902] Fix | Delete
[7903] Fix | Delete
if ( !timers.length ) {
[7904] Fix | Delete
jQuery.fx.stop();
[7905] Fix | Delete
}
[7906] Fix | Delete
fxNow = undefined;
[7907] Fix | Delete
};
[7908] Fix | Delete
[7909] Fix | Delete
jQuery.fx.timer = function( timer ) {
[7910] Fix | Delete
jQuery.timers.push( timer );
[7911] Fix | Delete
jQuery.fx.start();
[7912] Fix | Delete
};
[7913] Fix | Delete
[7914] Fix | Delete
jQuery.fx.interval = 13;
[7915] Fix | Delete
jQuery.fx.start = function() {
[7916] Fix | Delete
if ( inProgress ) {
[7917] Fix | Delete
return;
[7918] Fix | Delete
}
[7919] Fix | Delete
[7920] Fix | Delete
inProgress = true;
[7921] Fix | Delete
schedule();
[7922] Fix | Delete
};
[7923] Fix | Delete
[7924] Fix | Delete
jQuery.fx.stop = function() {
[7925] Fix | Delete
inProgress = null;
[7926] Fix | Delete
};
[7927] Fix | Delete
[7928] Fix | Delete
jQuery.fx.speeds = {
[7929] Fix | Delete
slow: 600,
[7930] Fix | Delete
fast: 200,
[7931] Fix | Delete
[7932] Fix | Delete
// Default speed
[7933] Fix | Delete
_default: 400
[7934] Fix | Delete
};
[7935] Fix | Delete
[7936] Fix | Delete
[7937] Fix | Delete
// Based off of the plugin by Clint Helfers, with permission.
[7938] Fix | Delete
// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
[7939] Fix | Delete
jQuery.fn.delay = function( time, type ) {
[7940] Fix | Delete
time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
[7941] Fix | Delete
type = type || "fx";
[7942] Fix | Delete
[7943] Fix | Delete
return this.queue( type, function( next, hooks ) {
[7944] Fix | Delete
var timeout = window.setTimeout( next, time );
[7945] Fix | Delete
hooks.stop = function() {
[7946] Fix | Delete
window.clearTimeout( timeout );
[7947] Fix | Delete
};
[7948] Fix | Delete
} );
[7949] Fix | Delete
};
[7950] Fix | Delete
[7951] Fix | Delete
[7952] Fix | Delete
( function() {
[7953] Fix | Delete
var input = document.createElement( "input" ),
[7954] Fix | Delete
select = document.createElement( "select" ),
[7955] Fix | Delete
opt = select.appendChild( document.createElement( "option" ) );
[7956] Fix | Delete
[7957] Fix | Delete
input.type = "checkbox";
[7958] Fix | Delete
[7959] Fix | Delete
// Support: Android <=4.3 only
[7960] Fix | Delete
// Default value for a checkbox should be "on"
[7961] Fix | Delete
support.checkOn = input.value !== "";
[7962] Fix | Delete
[7963] Fix | Delete
// Support: IE <=11 only
[7964] Fix | Delete
// Must access selectedIndex to make default options select
[7965] Fix | Delete
support.optSelected = opt.selected;
[7966] Fix | Delete
[7967] Fix | Delete
// Support: IE <=11 only
[7968] Fix | Delete
// An input loses its value after becoming a radio
[7969] Fix | Delete
input = document.createElement( "input" );
[7970] Fix | Delete
input.value = "t";
[7971] Fix | Delete
input.type = "radio";
[7972] Fix | Delete
support.radioValue = input.value === "t";
[7973] Fix | Delete
} )();
[7974] Fix | Delete
[7975] Fix | Delete
[7976] Fix | Delete
var boolHook,
[7977] Fix | Delete
attrHandle = jQuery.expr.attrHandle;
[7978] Fix | Delete
[7979] Fix | Delete
jQuery.fn.extend( {
[7980] Fix | Delete
attr: function( name, value ) {
[7981] Fix | Delete
return access( this, jQuery.attr, name, value, arguments.length > 1 );
[7982] Fix | Delete
},
[7983] Fix | Delete
[7984] Fix | Delete
removeAttr: function( name ) {
[7985] Fix | Delete
return this.each( function() {
[7986] Fix | Delete
jQuery.removeAttr( this, name );
[7987] Fix | Delete
} );
[7988] Fix | Delete
}
[7989] Fix | Delete
} );
[7990] Fix | Delete
[7991] Fix | Delete
jQuery.extend( {
[7992] Fix | Delete
attr: function( elem, name, value ) {
[7993] Fix | Delete
var ret, hooks,
[7994] Fix | Delete
nType = elem.nodeType;
[7995] Fix | Delete
[7996] Fix | Delete
// Don't get/set attributes on text, comment and attribute nodes
[7997] Fix | Delete
if ( nType === 3 || nType === 8 || nType === 2 ) {
[7998] Fix | Delete
return;
[7999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function