Edit File by line
/home/barbar84/www/wp-inclu.../js/jquery
File: jquery.js
}
[8000] Fix | Delete
[8001] Fix | Delete
// Fallback to prop when attributes are not supported
[8002] Fix | Delete
if ( typeof elem.getAttribute === "undefined" ) {
[8003] Fix | Delete
return jQuery.prop( elem, name, value );
[8004] Fix | Delete
}
[8005] Fix | Delete
[8006] Fix | Delete
// Attribute hooks are determined by the lowercase version
[8007] Fix | Delete
// Grab necessary hook if one is defined
[8008] Fix | Delete
if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
[8009] Fix | Delete
hooks = jQuery.attrHooks[ name.toLowerCase() ] ||
[8010] Fix | Delete
( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
[8011] Fix | Delete
}
[8012] Fix | Delete
[8013] Fix | Delete
if ( value !== undefined ) {
[8014] Fix | Delete
if ( value === null ) {
[8015] Fix | Delete
jQuery.removeAttr( elem, name );
[8016] Fix | Delete
return;
[8017] Fix | Delete
}
[8018] Fix | Delete
[8019] Fix | Delete
if ( hooks && "set" in hooks &&
[8020] Fix | Delete
( ret = hooks.set( elem, value, name ) ) !== undefined ) {
[8021] Fix | Delete
return ret;
[8022] Fix | Delete
}
[8023] Fix | Delete
[8024] Fix | Delete
elem.setAttribute( name, value + "" );
[8025] Fix | Delete
return value;
[8026] Fix | Delete
}
[8027] Fix | Delete
[8028] Fix | Delete
if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
[8029] Fix | Delete
return ret;
[8030] Fix | Delete
}
[8031] Fix | Delete
[8032] Fix | Delete
ret = jQuery.find.attr( elem, name );
[8033] Fix | Delete
[8034] Fix | Delete
// Non-existent attributes return null, we normalize to undefined
[8035] Fix | Delete
return ret == null ? undefined : ret;
[8036] Fix | Delete
},
[8037] Fix | Delete
[8038] Fix | Delete
attrHooks: {
[8039] Fix | Delete
type: {
[8040] Fix | Delete
set: function( elem, value ) {
[8041] Fix | Delete
if ( !support.radioValue && value === "radio" &&
[8042] Fix | Delete
nodeName( elem, "input" ) ) {
[8043] Fix | Delete
var val = elem.value;
[8044] Fix | Delete
elem.setAttribute( "type", value );
[8045] Fix | Delete
if ( val ) {
[8046] Fix | Delete
elem.value = val;
[8047] Fix | Delete
}
[8048] Fix | Delete
return value;
[8049] Fix | Delete
}
[8050] Fix | Delete
}
[8051] Fix | Delete
}
[8052] Fix | Delete
},
[8053] Fix | Delete
[8054] Fix | Delete
removeAttr: function( elem, value ) {
[8055] Fix | Delete
var name,
[8056] Fix | Delete
i = 0,
[8057] Fix | Delete
[8058] Fix | Delete
// Attribute names can contain non-HTML whitespace characters
[8059] Fix | Delete
// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
[8060] Fix | Delete
attrNames = value && value.match( rnothtmlwhite );
[8061] Fix | Delete
[8062] Fix | Delete
if ( attrNames && elem.nodeType === 1 ) {
[8063] Fix | Delete
while ( ( name = attrNames[ i++ ] ) ) {
[8064] Fix | Delete
elem.removeAttribute( name );
[8065] Fix | Delete
}
[8066] Fix | Delete
}
[8067] Fix | Delete
}
[8068] Fix | Delete
} );
[8069] Fix | Delete
[8070] Fix | Delete
// Hooks for boolean attributes
[8071] Fix | Delete
boolHook = {
[8072] Fix | Delete
set: function( elem, value, name ) {
[8073] Fix | Delete
if ( value === false ) {
[8074] Fix | Delete
[8075] Fix | Delete
// Remove boolean attributes when set to false
[8076] Fix | Delete
jQuery.removeAttr( elem, name );
[8077] Fix | Delete
} else {
[8078] Fix | Delete
elem.setAttribute( name, name );
[8079] Fix | Delete
}
[8080] Fix | Delete
return name;
[8081] Fix | Delete
}
[8082] Fix | Delete
};
[8083] Fix | Delete
[8084] Fix | Delete
jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) {
[8085] Fix | Delete
var getter = attrHandle[ name ] || jQuery.find.attr;
[8086] Fix | Delete
[8087] Fix | Delete
attrHandle[ name ] = function( elem, name, isXML ) {
[8088] Fix | Delete
var ret, handle,
[8089] Fix | Delete
lowercaseName = name.toLowerCase();
[8090] Fix | Delete
[8091] Fix | Delete
if ( !isXML ) {
[8092] Fix | Delete
[8093] Fix | Delete
// Avoid an infinite loop by temporarily removing this function from the getter
[8094] Fix | Delete
handle = attrHandle[ lowercaseName ];
[8095] Fix | Delete
attrHandle[ lowercaseName ] = ret;
[8096] Fix | Delete
ret = getter( elem, name, isXML ) != null ?
[8097] Fix | Delete
lowercaseName :
[8098] Fix | Delete
null;
[8099] Fix | Delete
attrHandle[ lowercaseName ] = handle;
[8100] Fix | Delete
}
[8101] Fix | Delete
return ret;
[8102] Fix | Delete
};
[8103] Fix | Delete
} );
[8104] Fix | Delete
[8105] Fix | Delete
[8106] Fix | Delete
[8107] Fix | Delete
[8108] Fix | Delete
var rfocusable = /^(?:input|select|textarea|button)$/i,
[8109] Fix | Delete
rclickable = /^(?:a|area)$/i;
[8110] Fix | Delete
[8111] Fix | Delete
jQuery.fn.extend( {
[8112] Fix | Delete
prop: function( name, value ) {
[8113] Fix | Delete
return access( this, jQuery.prop, name, value, arguments.length > 1 );
[8114] Fix | Delete
},
[8115] Fix | Delete
[8116] Fix | Delete
removeProp: function( name ) {
[8117] Fix | Delete
return this.each( function() {
[8118] Fix | Delete
delete this[ jQuery.propFix[ name ] || name ];
[8119] Fix | Delete
} );
[8120] Fix | Delete
}
[8121] Fix | Delete
} );
[8122] Fix | Delete
[8123] Fix | Delete
jQuery.extend( {
[8124] Fix | Delete
prop: function( elem, name, value ) {
[8125] Fix | Delete
var ret, hooks,
[8126] Fix | Delete
nType = elem.nodeType;
[8127] Fix | Delete
[8128] Fix | Delete
// Don't get/set properties on text, comment and attribute nodes
[8129] Fix | Delete
if ( nType === 3 || nType === 8 || nType === 2 ) {
[8130] Fix | Delete
return;
[8131] Fix | Delete
}
[8132] Fix | Delete
[8133] Fix | Delete
if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
[8134] Fix | Delete
[8135] Fix | Delete
// Fix name and attach hooks
[8136] Fix | Delete
name = jQuery.propFix[ name ] || name;
[8137] Fix | Delete
hooks = jQuery.propHooks[ name ];
[8138] Fix | Delete
}
[8139] Fix | Delete
[8140] Fix | Delete
if ( value !== undefined ) {
[8141] Fix | Delete
if ( hooks && "set" in hooks &&
[8142] Fix | Delete
( ret = hooks.set( elem, value, name ) ) !== undefined ) {
[8143] Fix | Delete
return ret;
[8144] Fix | Delete
}
[8145] Fix | Delete
[8146] Fix | Delete
return ( elem[ name ] = value );
[8147] Fix | Delete
}
[8148] Fix | Delete
[8149] Fix | Delete
if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
[8150] Fix | Delete
return ret;
[8151] Fix | Delete
}
[8152] Fix | Delete
[8153] Fix | Delete
return elem[ name ];
[8154] Fix | Delete
},
[8155] Fix | Delete
[8156] Fix | Delete
propHooks: {
[8157] Fix | Delete
tabIndex: {
[8158] Fix | Delete
get: function( elem ) {
[8159] Fix | Delete
[8160] Fix | Delete
// Support: IE <=9 - 11 only
[8161] Fix | Delete
// elem.tabIndex doesn't always return the
[8162] Fix | Delete
// correct value when it hasn't been explicitly set
[8163] Fix | Delete
// https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
[8164] Fix | Delete
// Use proper attribute retrieval(#12072)
[8165] Fix | Delete
var tabindex = jQuery.find.attr( elem, "tabindex" );
[8166] Fix | Delete
[8167] Fix | Delete
if ( tabindex ) {
[8168] Fix | Delete
return parseInt( tabindex, 10 );
[8169] Fix | Delete
}
[8170] Fix | Delete
[8171] Fix | Delete
if (
[8172] Fix | Delete
rfocusable.test( elem.nodeName ) ||
[8173] Fix | Delete
rclickable.test( elem.nodeName ) &&
[8174] Fix | Delete
elem.href
[8175] Fix | Delete
) {
[8176] Fix | Delete
return 0;
[8177] Fix | Delete
}
[8178] Fix | Delete
[8179] Fix | Delete
return -1;
[8180] Fix | Delete
}
[8181] Fix | Delete
}
[8182] Fix | Delete
},
[8183] Fix | Delete
[8184] Fix | Delete
propFix: {
[8185] Fix | Delete
"for": "htmlFor",
[8186] Fix | Delete
"class": "className"
[8187] Fix | Delete
}
[8188] Fix | Delete
} );
[8189] Fix | Delete
[8190] Fix | Delete
// Support: IE <=11 only
[8191] Fix | Delete
// Accessing the selectedIndex property
[8192] Fix | Delete
// forces the browser to respect setting selected
[8193] Fix | Delete
// on the option
[8194] Fix | Delete
// The getter ensures a default option is selected
[8195] Fix | Delete
// when in an optgroup
[8196] Fix | Delete
// eslint rule "no-unused-expressions" is disabled for this code
[8197] Fix | Delete
// since it considers such accessions noop
[8198] Fix | Delete
if ( !support.optSelected ) {
[8199] Fix | Delete
jQuery.propHooks.selected = {
[8200] Fix | Delete
get: function( elem ) {
[8201] Fix | Delete
[8202] Fix | Delete
/* eslint no-unused-expressions: "off" */
[8203] Fix | Delete
[8204] Fix | Delete
var parent = elem.parentNode;
[8205] Fix | Delete
if ( parent && parent.parentNode ) {
[8206] Fix | Delete
parent.parentNode.selectedIndex;
[8207] Fix | Delete
}
[8208] Fix | Delete
return null;
[8209] Fix | Delete
},
[8210] Fix | Delete
set: function( elem ) {
[8211] Fix | Delete
[8212] Fix | Delete
/* eslint no-unused-expressions: "off" */
[8213] Fix | Delete
[8214] Fix | Delete
var parent = elem.parentNode;
[8215] Fix | Delete
if ( parent ) {
[8216] Fix | Delete
parent.selectedIndex;
[8217] Fix | Delete
[8218] Fix | Delete
if ( parent.parentNode ) {
[8219] Fix | Delete
parent.parentNode.selectedIndex;
[8220] Fix | Delete
}
[8221] Fix | Delete
}
[8222] Fix | Delete
}
[8223] Fix | Delete
};
[8224] Fix | Delete
}
[8225] Fix | Delete
[8226] Fix | Delete
jQuery.each( [
[8227] Fix | Delete
"tabIndex",
[8228] Fix | Delete
"readOnly",
[8229] Fix | Delete
"maxLength",
[8230] Fix | Delete
"cellSpacing",
[8231] Fix | Delete
"cellPadding",
[8232] Fix | Delete
"rowSpan",
[8233] Fix | Delete
"colSpan",
[8234] Fix | Delete
"useMap",
[8235] Fix | Delete
"frameBorder",
[8236] Fix | Delete
"contentEditable"
[8237] Fix | Delete
], function() {
[8238] Fix | Delete
jQuery.propFix[ this.toLowerCase() ] = this;
[8239] Fix | Delete
} );
[8240] Fix | Delete
[8241] Fix | Delete
[8242] Fix | Delete
[8243] Fix | Delete
[8244] Fix | Delete
// Strip and collapse whitespace according to HTML spec
[8245] Fix | Delete
// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
[8246] Fix | Delete
function stripAndCollapse( value ) {
[8247] Fix | Delete
var tokens = value.match( rnothtmlwhite ) || [];
[8248] Fix | Delete
return tokens.join( " " );
[8249] Fix | Delete
}
[8250] Fix | Delete
[8251] Fix | Delete
[8252] Fix | Delete
function getClass( elem ) {
[8253] Fix | Delete
return elem.getAttribute && elem.getAttribute( "class" ) || "";
[8254] Fix | Delete
}
[8255] Fix | Delete
[8256] Fix | Delete
function classesToArray( value ) {
[8257] Fix | Delete
if ( Array.isArray( value ) ) {
[8258] Fix | Delete
return value;
[8259] Fix | Delete
}
[8260] Fix | Delete
if ( typeof value === "string" ) {
[8261] Fix | Delete
return value.match( rnothtmlwhite ) || [];
[8262] Fix | Delete
}
[8263] Fix | Delete
return [];
[8264] Fix | Delete
}
[8265] Fix | Delete
[8266] Fix | Delete
jQuery.fn.extend( {
[8267] Fix | Delete
addClass: function( value ) {
[8268] Fix | Delete
var classes, elem, cur, curValue, clazz, j, finalValue,
[8269] Fix | Delete
i = 0;
[8270] Fix | Delete
[8271] Fix | Delete
if ( isFunction( value ) ) {
[8272] Fix | Delete
return this.each( function( j ) {
[8273] Fix | Delete
jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
[8274] Fix | Delete
} );
[8275] Fix | Delete
}
[8276] Fix | Delete
[8277] Fix | Delete
classes = classesToArray( value );
[8278] Fix | Delete
[8279] Fix | Delete
if ( classes.length ) {
[8280] Fix | Delete
while ( ( elem = this[ i++ ] ) ) {
[8281] Fix | Delete
curValue = getClass( elem );
[8282] Fix | Delete
cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
[8283] Fix | Delete
[8284] Fix | Delete
if ( cur ) {
[8285] Fix | Delete
j = 0;
[8286] Fix | Delete
while ( ( clazz = classes[ j++ ] ) ) {
[8287] Fix | Delete
if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
[8288] Fix | Delete
cur += clazz + " ";
[8289] Fix | Delete
}
[8290] Fix | Delete
}
[8291] Fix | Delete
[8292] Fix | Delete
// Only assign if different to avoid unneeded rendering.
[8293] Fix | Delete
finalValue = stripAndCollapse( cur );
[8294] Fix | Delete
if ( curValue !== finalValue ) {
[8295] Fix | Delete
elem.setAttribute( "class", finalValue );
[8296] Fix | Delete
}
[8297] Fix | Delete
}
[8298] Fix | Delete
}
[8299] Fix | Delete
}
[8300] Fix | Delete
[8301] Fix | Delete
return this;
[8302] Fix | Delete
},
[8303] Fix | Delete
[8304] Fix | Delete
removeClass: function( value ) {
[8305] Fix | Delete
var classes, elem, cur, curValue, clazz, j, finalValue,
[8306] Fix | Delete
i = 0;
[8307] Fix | Delete
[8308] Fix | Delete
if ( isFunction( value ) ) {
[8309] Fix | Delete
return this.each( function( j ) {
[8310] Fix | Delete
jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
[8311] Fix | Delete
} );
[8312] Fix | Delete
}
[8313] Fix | Delete
[8314] Fix | Delete
if ( !arguments.length ) {
[8315] Fix | Delete
return this.attr( "class", "" );
[8316] Fix | Delete
}
[8317] Fix | Delete
[8318] Fix | Delete
classes = classesToArray( value );
[8319] Fix | Delete
[8320] Fix | Delete
if ( classes.length ) {
[8321] Fix | Delete
while ( ( elem = this[ i++ ] ) ) {
[8322] Fix | Delete
curValue = getClass( elem );
[8323] Fix | Delete
[8324] Fix | Delete
// This expression is here for better compressibility (see addClass)
[8325] Fix | Delete
cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
[8326] Fix | Delete
[8327] Fix | Delete
if ( cur ) {
[8328] Fix | Delete
j = 0;
[8329] Fix | Delete
while ( ( clazz = classes[ j++ ] ) ) {
[8330] Fix | Delete
[8331] Fix | Delete
// Remove *all* instances
[8332] Fix | Delete
while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
[8333] Fix | Delete
cur = cur.replace( " " + clazz + " ", " " );
[8334] Fix | Delete
}
[8335] Fix | Delete
}
[8336] Fix | Delete
[8337] Fix | Delete
// Only assign if different to avoid unneeded rendering.
[8338] Fix | Delete
finalValue = stripAndCollapse( cur );
[8339] Fix | Delete
if ( curValue !== finalValue ) {
[8340] Fix | Delete
elem.setAttribute( "class", finalValue );
[8341] Fix | Delete
}
[8342] Fix | Delete
}
[8343] Fix | Delete
}
[8344] Fix | Delete
}
[8345] Fix | Delete
[8346] Fix | Delete
return this;
[8347] Fix | Delete
},
[8348] Fix | Delete
[8349] Fix | Delete
toggleClass: function( value, stateVal ) {
[8350] Fix | Delete
var type = typeof value,
[8351] Fix | Delete
isValidValue = type === "string" || Array.isArray( value );
[8352] Fix | Delete
[8353] Fix | Delete
if ( typeof stateVal === "boolean" && isValidValue ) {
[8354] Fix | Delete
return stateVal ? this.addClass( value ) : this.removeClass( value );
[8355] Fix | Delete
}
[8356] Fix | Delete
[8357] Fix | Delete
if ( isFunction( value ) ) {
[8358] Fix | Delete
return this.each( function( i ) {
[8359] Fix | Delete
jQuery( this ).toggleClass(
[8360] Fix | Delete
value.call( this, i, getClass( this ), stateVal ),
[8361] Fix | Delete
stateVal
[8362] Fix | Delete
);
[8363] Fix | Delete
} );
[8364] Fix | Delete
}
[8365] Fix | Delete
[8366] Fix | Delete
return this.each( function() {
[8367] Fix | Delete
var className, i, self, classNames;
[8368] Fix | Delete
[8369] Fix | Delete
if ( isValidValue ) {
[8370] Fix | Delete
[8371] Fix | Delete
// Toggle individual class names
[8372] Fix | Delete
i = 0;
[8373] Fix | Delete
self = jQuery( this );
[8374] Fix | Delete
classNames = classesToArray( value );
[8375] Fix | Delete
[8376] Fix | Delete
while ( ( className = classNames[ i++ ] ) ) {
[8377] Fix | Delete
[8378] Fix | Delete
// Check each className given, space separated list
[8379] Fix | Delete
if ( self.hasClass( className ) ) {
[8380] Fix | Delete
self.removeClass( className );
[8381] Fix | Delete
} else {
[8382] Fix | Delete
self.addClass( className );
[8383] Fix | Delete
}
[8384] Fix | Delete
}
[8385] Fix | Delete
[8386] Fix | Delete
// Toggle whole class name
[8387] Fix | Delete
} else if ( value === undefined || type === "boolean" ) {
[8388] Fix | Delete
className = getClass( this );
[8389] Fix | Delete
if ( className ) {
[8390] Fix | Delete
[8391] Fix | Delete
// Store className if set
[8392] Fix | Delete
dataPriv.set( this, "__className__", className );
[8393] Fix | Delete
}
[8394] Fix | Delete
[8395] Fix | Delete
// If the element has a class name or if we're passed `false`,
[8396] Fix | Delete
// then remove the whole classname (if there was one, the above saved it).
[8397] Fix | Delete
// Otherwise bring back whatever was previously saved (if anything),
[8398] Fix | Delete
// falling back to the empty string if nothing was stored.
[8399] Fix | Delete
if ( this.setAttribute ) {
[8400] Fix | Delete
this.setAttribute( "class",
[8401] Fix | Delete
className || value === false ?
[8402] Fix | Delete
"" :
[8403] Fix | Delete
dataPriv.get( this, "__className__" ) || ""
[8404] Fix | Delete
);
[8405] Fix | Delete
}
[8406] Fix | Delete
}
[8407] Fix | Delete
} );
[8408] Fix | Delete
},
[8409] Fix | Delete
[8410] Fix | Delete
hasClass: function( selector ) {
[8411] Fix | Delete
var className, elem,
[8412] Fix | Delete
i = 0;
[8413] Fix | Delete
[8414] Fix | Delete
className = " " + selector + " ";
[8415] Fix | Delete
while ( ( elem = this[ i++ ] ) ) {
[8416] Fix | Delete
if ( elem.nodeType === 1 &&
[8417] Fix | Delete
( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) {
[8418] Fix | Delete
return true;
[8419] Fix | Delete
}
[8420] Fix | Delete
}
[8421] Fix | Delete
[8422] Fix | Delete
return false;
[8423] Fix | Delete
}
[8424] Fix | Delete
} );
[8425] Fix | Delete
[8426] Fix | Delete
[8427] Fix | Delete
[8428] Fix | Delete
[8429] Fix | Delete
var rreturn = /\r/g;
[8430] Fix | Delete
[8431] Fix | Delete
jQuery.fn.extend( {
[8432] Fix | Delete
val: function( value ) {
[8433] Fix | Delete
var hooks, ret, valueIsFunction,
[8434] Fix | Delete
elem = this[ 0 ];
[8435] Fix | Delete
[8436] Fix | Delete
if ( !arguments.length ) {
[8437] Fix | Delete
if ( elem ) {
[8438] Fix | Delete
hooks = jQuery.valHooks[ elem.type ] ||
[8439] Fix | Delete
jQuery.valHooks[ elem.nodeName.toLowerCase() ];
[8440] Fix | Delete
[8441] Fix | Delete
if ( hooks &&
[8442] Fix | Delete
"get" in hooks &&
[8443] Fix | Delete
( ret = hooks.get( elem, "value" ) ) !== undefined
[8444] Fix | Delete
) {
[8445] Fix | Delete
return ret;
[8446] Fix | Delete
}
[8447] Fix | Delete
[8448] Fix | Delete
ret = elem.value;
[8449] Fix | Delete
[8450] Fix | Delete
// Handle most common string cases
[8451] Fix | Delete
if ( typeof ret === "string" ) {
[8452] Fix | Delete
return ret.replace( rreturn, "" );
[8453] Fix | Delete
}
[8454] Fix | Delete
[8455] Fix | Delete
// Handle cases where value is null/undef or number
[8456] Fix | Delete
return ret == null ? "" : ret;
[8457] Fix | Delete
}
[8458] Fix | Delete
[8459] Fix | Delete
return;
[8460] Fix | Delete
}
[8461] Fix | Delete
[8462] Fix | Delete
valueIsFunction = isFunction( value );
[8463] Fix | Delete
[8464] Fix | Delete
return this.each( function( i ) {
[8465] Fix | Delete
var val;
[8466] Fix | Delete
[8467] Fix | Delete
if ( this.nodeType !== 1 ) {
[8468] Fix | Delete
return;
[8469] Fix | Delete
}
[8470] Fix | Delete
[8471] Fix | Delete
if ( valueIsFunction ) {
[8472] Fix | Delete
val = value.call( this, i, jQuery( this ).val() );
[8473] Fix | Delete
} else {
[8474] Fix | Delete
val = value;
[8475] Fix | Delete
}
[8476] Fix | Delete
[8477] Fix | Delete
// Treat null/undefined as ""; convert numbers to string
[8478] Fix | Delete
if ( val == null ) {
[8479] Fix | Delete
val = "";
[8480] Fix | Delete
[8481] Fix | Delete
} else if ( typeof val === "number" ) {
[8482] Fix | Delete
val += "";
[8483] Fix | Delete
[8484] Fix | Delete
} else if ( Array.isArray( val ) ) {
[8485] Fix | Delete
val = jQuery.map( val, function( value ) {
[8486] Fix | Delete
return value == null ? "" : value + "";
[8487] Fix | Delete
} );
[8488] Fix | Delete
}
[8489] Fix | Delete
[8490] Fix | Delete
hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
[8491] Fix | Delete
[8492] Fix | Delete
// If set returns undefined, fall back to normal setting
[8493] Fix | Delete
if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
[8494] Fix | Delete
this.value = val;
[8495] Fix | Delete
}
[8496] Fix | Delete
} );
[8497] Fix | Delete
}
[8498] Fix | Delete
} );
[8499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function