Edit File by line
/home/barbar84/www/wp-inclu.../js/jquery
File: jquery.js
[4500] Fix | Delete
return data;
[4501] Fix | Delete
}
[4502] Fix | Delete
[4503] Fix | Delete
// Sets multiple values
[4504] Fix | Delete
if ( typeof key === "object" ) {
[4505] Fix | Delete
return this.each( function() {
[4506] Fix | Delete
dataUser.set( this, key );
[4507] Fix | Delete
} );
[4508] Fix | Delete
}
[4509] Fix | Delete
[4510] Fix | Delete
return access( this, function( value ) {
[4511] Fix | Delete
var data;
[4512] Fix | Delete
[4513] Fix | Delete
// The calling jQuery object (element matches) is not empty
[4514] Fix | Delete
// (and therefore has an element appears at this[ 0 ]) and the
[4515] Fix | Delete
// `value` parameter was not undefined. An empty jQuery object
[4516] Fix | Delete
// will result in `undefined` for elem = this[ 0 ] which will
[4517] Fix | Delete
// throw an exception if an attempt to read a data cache is made.
[4518] Fix | Delete
if ( elem && value === undefined ) {
[4519] Fix | Delete
[4520] Fix | Delete
// Attempt to get data from the cache
[4521] Fix | Delete
// The key will always be camelCased in Data
[4522] Fix | Delete
data = dataUser.get( elem, key );
[4523] Fix | Delete
if ( data !== undefined ) {
[4524] Fix | Delete
return data;
[4525] Fix | Delete
}
[4526] Fix | Delete
[4527] Fix | Delete
// Attempt to "discover" the data in
[4528] Fix | Delete
// HTML5 custom data-* attrs
[4529] Fix | Delete
data = dataAttr( elem, key );
[4530] Fix | Delete
if ( data !== undefined ) {
[4531] Fix | Delete
return data;
[4532] Fix | Delete
}
[4533] Fix | Delete
[4534] Fix | Delete
// We tried really hard, but the data doesn't exist.
[4535] Fix | Delete
return;
[4536] Fix | Delete
}
[4537] Fix | Delete
[4538] Fix | Delete
// Set the data...
[4539] Fix | Delete
this.each( function() {
[4540] Fix | Delete
[4541] Fix | Delete
// We always store the camelCased key
[4542] Fix | Delete
dataUser.set( this, key, value );
[4543] Fix | Delete
} );
[4544] Fix | Delete
}, null, value, arguments.length > 1, null, true );
[4545] Fix | Delete
},
[4546] Fix | Delete
[4547] Fix | Delete
removeData: function( key ) {
[4548] Fix | Delete
return this.each( function() {
[4549] Fix | Delete
dataUser.remove( this, key );
[4550] Fix | Delete
} );
[4551] Fix | Delete
}
[4552] Fix | Delete
} );
[4553] Fix | Delete
[4554] Fix | Delete
[4555] Fix | Delete
jQuery.extend( {
[4556] Fix | Delete
queue: function( elem, type, data ) {
[4557] Fix | Delete
var queue;
[4558] Fix | Delete
[4559] Fix | Delete
if ( elem ) {
[4560] Fix | Delete
type = ( type || "fx" ) + "queue";
[4561] Fix | Delete
queue = dataPriv.get( elem, type );
[4562] Fix | Delete
[4563] Fix | Delete
// Speed up dequeue by getting out quickly if this is just a lookup
[4564] Fix | Delete
if ( data ) {
[4565] Fix | Delete
if ( !queue || Array.isArray( data ) ) {
[4566] Fix | Delete
queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
[4567] Fix | Delete
} else {
[4568] Fix | Delete
queue.push( data );
[4569] Fix | Delete
}
[4570] Fix | Delete
}
[4571] Fix | Delete
return queue || [];
[4572] Fix | Delete
}
[4573] Fix | Delete
},
[4574] Fix | Delete
[4575] Fix | Delete
dequeue: function( elem, type ) {
[4576] Fix | Delete
type = type || "fx";
[4577] Fix | Delete
[4578] Fix | Delete
var queue = jQuery.queue( elem, type ),
[4579] Fix | Delete
startLength = queue.length,
[4580] Fix | Delete
fn = queue.shift(),
[4581] Fix | Delete
hooks = jQuery._queueHooks( elem, type ),
[4582] Fix | Delete
next = function() {
[4583] Fix | Delete
jQuery.dequeue( elem, type );
[4584] Fix | Delete
};
[4585] Fix | Delete
[4586] Fix | Delete
// If the fx queue is dequeued, always remove the progress sentinel
[4587] Fix | Delete
if ( fn === "inprogress" ) {
[4588] Fix | Delete
fn = queue.shift();
[4589] Fix | Delete
startLength--;
[4590] Fix | Delete
}
[4591] Fix | Delete
[4592] Fix | Delete
if ( fn ) {
[4593] Fix | Delete
[4594] Fix | Delete
// Add a progress sentinel to prevent the fx queue from being
[4595] Fix | Delete
// automatically dequeued
[4596] Fix | Delete
if ( type === "fx" ) {
[4597] Fix | Delete
queue.unshift( "inprogress" );
[4598] Fix | Delete
}
[4599] Fix | Delete
[4600] Fix | Delete
// Clear up the last queue stop function
[4601] Fix | Delete
delete hooks.stop;
[4602] Fix | Delete
fn.call( elem, next, hooks );
[4603] Fix | Delete
}
[4604] Fix | Delete
[4605] Fix | Delete
if ( !startLength && hooks ) {
[4606] Fix | Delete
hooks.empty.fire();
[4607] Fix | Delete
}
[4608] Fix | Delete
},
[4609] Fix | Delete
[4610] Fix | Delete
// Not public - generate a queueHooks object, or return the current one
[4611] Fix | Delete
_queueHooks: function( elem, type ) {
[4612] Fix | Delete
var key = type + "queueHooks";
[4613] Fix | Delete
return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
[4614] Fix | Delete
empty: jQuery.Callbacks( "once memory" ).add( function() {
[4615] Fix | Delete
dataPriv.remove( elem, [ type + "queue", key ] );
[4616] Fix | Delete
} )
[4617] Fix | Delete
} );
[4618] Fix | Delete
}
[4619] Fix | Delete
} );
[4620] Fix | Delete
[4621] Fix | Delete
jQuery.fn.extend( {
[4622] Fix | Delete
queue: function( type, data ) {
[4623] Fix | Delete
var setter = 2;
[4624] Fix | Delete
[4625] Fix | Delete
if ( typeof type !== "string" ) {
[4626] Fix | Delete
data = type;
[4627] Fix | Delete
type = "fx";
[4628] Fix | Delete
setter--;
[4629] Fix | Delete
}
[4630] Fix | Delete
[4631] Fix | Delete
if ( arguments.length < setter ) {
[4632] Fix | Delete
return jQuery.queue( this[ 0 ], type );
[4633] Fix | Delete
}
[4634] Fix | Delete
[4635] Fix | Delete
return data === undefined ?
[4636] Fix | Delete
this :
[4637] Fix | Delete
this.each( function() {
[4638] Fix | Delete
var queue = jQuery.queue( this, type, data );
[4639] Fix | Delete
[4640] Fix | Delete
// Ensure a hooks for this queue
[4641] Fix | Delete
jQuery._queueHooks( this, type );
[4642] Fix | Delete
[4643] Fix | Delete
if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
[4644] Fix | Delete
jQuery.dequeue( this, type );
[4645] Fix | Delete
}
[4646] Fix | Delete
} );
[4647] Fix | Delete
},
[4648] Fix | Delete
dequeue: function( type ) {
[4649] Fix | Delete
return this.each( function() {
[4650] Fix | Delete
jQuery.dequeue( this, type );
[4651] Fix | Delete
} );
[4652] Fix | Delete
},
[4653] Fix | Delete
clearQueue: function( type ) {
[4654] Fix | Delete
return this.queue( type || "fx", [] );
[4655] Fix | Delete
},
[4656] Fix | Delete
[4657] Fix | Delete
// Get a promise resolved when queues of a certain type
[4658] Fix | Delete
// are emptied (fx is the type by default)
[4659] Fix | Delete
promise: function( type, obj ) {
[4660] Fix | Delete
var tmp,
[4661] Fix | Delete
count = 1,
[4662] Fix | Delete
defer = jQuery.Deferred(),
[4663] Fix | Delete
elements = this,
[4664] Fix | Delete
i = this.length,
[4665] Fix | Delete
resolve = function() {
[4666] Fix | Delete
if ( !( --count ) ) {
[4667] Fix | Delete
defer.resolveWith( elements, [ elements ] );
[4668] Fix | Delete
}
[4669] Fix | Delete
};
[4670] Fix | Delete
[4671] Fix | Delete
if ( typeof type !== "string" ) {
[4672] Fix | Delete
obj = type;
[4673] Fix | Delete
type = undefined;
[4674] Fix | Delete
}
[4675] Fix | Delete
type = type || "fx";
[4676] Fix | Delete
[4677] Fix | Delete
while ( i-- ) {
[4678] Fix | Delete
tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
[4679] Fix | Delete
if ( tmp && tmp.empty ) {
[4680] Fix | Delete
count++;
[4681] Fix | Delete
tmp.empty.add( resolve );
[4682] Fix | Delete
}
[4683] Fix | Delete
}
[4684] Fix | Delete
resolve();
[4685] Fix | Delete
return defer.promise( obj );
[4686] Fix | Delete
}
[4687] Fix | Delete
} );
[4688] Fix | Delete
var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
[4689] Fix | Delete
[4690] Fix | Delete
var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
[4691] Fix | Delete
[4692] Fix | Delete
[4693] Fix | Delete
var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
[4694] Fix | Delete
[4695] Fix | Delete
var documentElement = document.documentElement;
[4696] Fix | Delete
[4697] Fix | Delete
[4698] Fix | Delete
[4699] Fix | Delete
var isAttached = function( elem ) {
[4700] Fix | Delete
return jQuery.contains( elem.ownerDocument, elem );
[4701] Fix | Delete
},
[4702] Fix | Delete
composed = { composed: true };
[4703] Fix | Delete
[4704] Fix | Delete
// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only
[4705] Fix | Delete
// Check attachment across shadow DOM boundaries when possible (gh-3504)
[4706] Fix | Delete
// Support: iOS 10.0-10.2 only
[4707] Fix | Delete
// Early iOS 10 versions support `attachShadow` but not `getRootNode`,
[4708] Fix | Delete
// leading to errors. We need to check for `getRootNode`.
[4709] Fix | Delete
if ( documentElement.getRootNode ) {
[4710] Fix | Delete
isAttached = function( elem ) {
[4711] Fix | Delete
return jQuery.contains( elem.ownerDocument, elem ) ||
[4712] Fix | Delete
elem.getRootNode( composed ) === elem.ownerDocument;
[4713] Fix | Delete
};
[4714] Fix | Delete
}
[4715] Fix | Delete
var isHiddenWithinTree = function( elem, el ) {
[4716] Fix | Delete
[4717] Fix | Delete
// isHiddenWithinTree might be called from jQuery#filter function;
[4718] Fix | Delete
// in that case, element will be second argument
[4719] Fix | Delete
elem = el || elem;
[4720] Fix | Delete
[4721] Fix | Delete
// Inline style trumps all
[4722] Fix | Delete
return elem.style.display === "none" ||
[4723] Fix | Delete
elem.style.display === "" &&
[4724] Fix | Delete
[4725] Fix | Delete
// Otherwise, check computed style
[4726] Fix | Delete
// Support: Firefox <=43 - 45
[4727] Fix | Delete
// Disconnected elements can have computed display: none, so first confirm that elem is
[4728] Fix | Delete
// in the document.
[4729] Fix | Delete
isAttached( elem ) &&
[4730] Fix | Delete
[4731] Fix | Delete
jQuery.css( elem, "display" ) === "none";
[4732] Fix | Delete
};
[4733] Fix | Delete
[4734] Fix | Delete
[4735] Fix | Delete
[4736] Fix | Delete
function adjustCSS( elem, prop, valueParts, tween ) {
[4737] Fix | Delete
var adjusted, scale,
[4738] Fix | Delete
maxIterations = 20,
[4739] Fix | Delete
currentValue = tween ?
[4740] Fix | Delete
function() {
[4741] Fix | Delete
return tween.cur();
[4742] Fix | Delete
} :
[4743] Fix | Delete
function() {
[4744] Fix | Delete
return jQuery.css( elem, prop, "" );
[4745] Fix | Delete
},
[4746] Fix | Delete
initial = currentValue(),
[4747] Fix | Delete
unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
[4748] Fix | Delete
[4749] Fix | Delete
// Starting value computation is required for potential unit mismatches
[4750] Fix | Delete
initialInUnit = elem.nodeType &&
[4751] Fix | Delete
( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
[4752] Fix | Delete
rcssNum.exec( jQuery.css( elem, prop ) );
[4753] Fix | Delete
[4754] Fix | Delete
if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
[4755] Fix | Delete
[4756] Fix | Delete
// Support: Firefox <=54
[4757] Fix | Delete
// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)
[4758] Fix | Delete
initial = initial / 2;
[4759] Fix | Delete
[4760] Fix | Delete
// Trust units reported by jQuery.css
[4761] Fix | Delete
unit = unit || initialInUnit[ 3 ];
[4762] Fix | Delete
[4763] Fix | Delete
// Iteratively approximate from a nonzero starting point
[4764] Fix | Delete
initialInUnit = +initial || 1;
[4765] Fix | Delete
[4766] Fix | Delete
while ( maxIterations-- ) {
[4767] Fix | Delete
[4768] Fix | Delete
// Evaluate and update our best guess (doubling guesses that zero out).
[4769] Fix | Delete
// Finish if the scale equals or crosses 1 (making the old*new product non-positive).
[4770] Fix | Delete
jQuery.style( elem, prop, initialInUnit + unit );
[4771] Fix | Delete
if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {
[4772] Fix | Delete
maxIterations = 0;
[4773] Fix | Delete
}
[4774] Fix | Delete
initialInUnit = initialInUnit / scale;
[4775] Fix | Delete
[4776] Fix | Delete
}
[4777] Fix | Delete
[4778] Fix | Delete
initialInUnit = initialInUnit * 2;
[4779] Fix | Delete
jQuery.style( elem, prop, initialInUnit + unit );
[4780] Fix | Delete
[4781] Fix | Delete
// Make sure we update the tween properties later on
[4782] Fix | Delete
valueParts = valueParts || [];
[4783] Fix | Delete
}
[4784] Fix | Delete
[4785] Fix | Delete
if ( valueParts ) {
[4786] Fix | Delete
initialInUnit = +initialInUnit || +initial || 0;
[4787] Fix | Delete
[4788] Fix | Delete
// Apply relative offset (+=/-=) if specified
[4789] Fix | Delete
adjusted = valueParts[ 1 ] ?
[4790] Fix | Delete
initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
[4791] Fix | Delete
+valueParts[ 2 ];
[4792] Fix | Delete
if ( tween ) {
[4793] Fix | Delete
tween.unit = unit;
[4794] Fix | Delete
tween.start = initialInUnit;
[4795] Fix | Delete
tween.end = adjusted;
[4796] Fix | Delete
}
[4797] Fix | Delete
}
[4798] Fix | Delete
return adjusted;
[4799] Fix | Delete
}
[4800] Fix | Delete
[4801] Fix | Delete
[4802] Fix | Delete
var defaultDisplayMap = {};
[4803] Fix | Delete
[4804] Fix | Delete
function getDefaultDisplay( elem ) {
[4805] Fix | Delete
var temp,
[4806] Fix | Delete
doc = elem.ownerDocument,
[4807] Fix | Delete
nodeName = elem.nodeName,
[4808] Fix | Delete
display = defaultDisplayMap[ nodeName ];
[4809] Fix | Delete
[4810] Fix | Delete
if ( display ) {
[4811] Fix | Delete
return display;
[4812] Fix | Delete
}
[4813] Fix | Delete
[4814] Fix | Delete
temp = doc.body.appendChild( doc.createElement( nodeName ) );
[4815] Fix | Delete
display = jQuery.css( temp, "display" );
[4816] Fix | Delete
[4817] Fix | Delete
temp.parentNode.removeChild( temp );
[4818] Fix | Delete
[4819] Fix | Delete
if ( display === "none" ) {
[4820] Fix | Delete
display = "block";
[4821] Fix | Delete
}
[4822] Fix | Delete
defaultDisplayMap[ nodeName ] = display;
[4823] Fix | Delete
[4824] Fix | Delete
return display;
[4825] Fix | Delete
}
[4826] Fix | Delete
[4827] Fix | Delete
function showHide( elements, show ) {
[4828] Fix | Delete
var display, elem,
[4829] Fix | Delete
values = [],
[4830] Fix | Delete
index = 0,
[4831] Fix | Delete
length = elements.length;
[4832] Fix | Delete
[4833] Fix | Delete
// Determine new display value for elements that need to change
[4834] Fix | Delete
for ( ; index < length; index++ ) {
[4835] Fix | Delete
elem = elements[ index ];
[4836] Fix | Delete
if ( !elem.style ) {
[4837] Fix | Delete
continue;
[4838] Fix | Delete
}
[4839] Fix | Delete
[4840] Fix | Delete
display = elem.style.display;
[4841] Fix | Delete
if ( show ) {
[4842] Fix | Delete
[4843] Fix | Delete
// Since we force visibility upon cascade-hidden elements, an immediate (and slow)
[4844] Fix | Delete
// check is required in this first loop unless we have a nonempty display value (either
[4845] Fix | Delete
// inline or about-to-be-restored)
[4846] Fix | Delete
if ( display === "none" ) {
[4847] Fix | Delete
values[ index ] = dataPriv.get( elem, "display" ) || null;
[4848] Fix | Delete
if ( !values[ index ] ) {
[4849] Fix | Delete
elem.style.display = "";
[4850] Fix | Delete
}
[4851] Fix | Delete
}
[4852] Fix | Delete
if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
[4853] Fix | Delete
values[ index ] = getDefaultDisplay( elem );
[4854] Fix | Delete
}
[4855] Fix | Delete
} else {
[4856] Fix | Delete
if ( display !== "none" ) {
[4857] Fix | Delete
values[ index ] = "none";
[4858] Fix | Delete
[4859] Fix | Delete
// Remember what we're overwriting
[4860] Fix | Delete
dataPriv.set( elem, "display", display );
[4861] Fix | Delete
}
[4862] Fix | Delete
}
[4863] Fix | Delete
}
[4864] Fix | Delete
[4865] Fix | Delete
// Set the display of the elements in a second loop to avoid constant reflow
[4866] Fix | Delete
for ( index = 0; index < length; index++ ) {
[4867] Fix | Delete
if ( values[ index ] != null ) {
[4868] Fix | Delete
elements[ index ].style.display = values[ index ];
[4869] Fix | Delete
}
[4870] Fix | Delete
}
[4871] Fix | Delete
[4872] Fix | Delete
return elements;
[4873] Fix | Delete
}
[4874] Fix | Delete
[4875] Fix | Delete
jQuery.fn.extend( {
[4876] Fix | Delete
show: function() {
[4877] Fix | Delete
return showHide( this, true );
[4878] Fix | Delete
},
[4879] Fix | Delete
hide: function() {
[4880] Fix | Delete
return showHide( this );
[4881] Fix | Delete
},
[4882] Fix | Delete
toggle: function( state ) {
[4883] Fix | Delete
if ( typeof state === "boolean" ) {
[4884] Fix | Delete
return state ? this.show() : this.hide();
[4885] Fix | Delete
}
[4886] Fix | Delete
[4887] Fix | Delete
return this.each( function() {
[4888] Fix | Delete
if ( isHiddenWithinTree( this ) ) {
[4889] Fix | Delete
jQuery( this ).show();
[4890] Fix | Delete
} else {
[4891] Fix | Delete
jQuery( this ).hide();
[4892] Fix | Delete
}
[4893] Fix | Delete
} );
[4894] Fix | Delete
}
[4895] Fix | Delete
} );
[4896] Fix | Delete
var rcheckableType = ( /^(?:checkbox|radio)$/i );
[4897] Fix | Delete
[4898] Fix | Delete
var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i );
[4899] Fix | Delete
[4900] Fix | Delete
var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i );
[4901] Fix | Delete
[4902] Fix | Delete
[4903] Fix | Delete
[4904] Fix | Delete
( function() {
[4905] Fix | Delete
var fragment = document.createDocumentFragment(),
[4906] Fix | Delete
div = fragment.appendChild( document.createElement( "div" ) ),
[4907] Fix | Delete
input = document.createElement( "input" );
[4908] Fix | Delete
[4909] Fix | Delete
// Support: Android 4.0 - 4.3 only
[4910] Fix | Delete
// Check state lost if the name is set (#11217)
[4911] Fix | Delete
// Support: Windows Web Apps (WWA)
[4912] Fix | Delete
// `name` and `type` must use .setAttribute for WWA (#14901)
[4913] Fix | Delete
input.setAttribute( "type", "radio" );
[4914] Fix | Delete
input.setAttribute( "checked", "checked" );
[4915] Fix | Delete
input.setAttribute( "name", "t" );
[4916] Fix | Delete
[4917] Fix | Delete
div.appendChild( input );
[4918] Fix | Delete
[4919] Fix | Delete
// Support: Android <=4.1 only
[4920] Fix | Delete
// Older WebKit doesn't clone checked state correctly in fragments
[4921] Fix | Delete
support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
[4922] Fix | Delete
[4923] Fix | Delete
// Support: IE <=11 only
[4924] Fix | Delete
// Make sure textarea (and checkbox) defaultValue is properly cloned
[4925] Fix | Delete
div.innerHTML = "<textarea>x</textarea>";
[4926] Fix | Delete
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
[4927] Fix | Delete
[4928] Fix | Delete
// Support: IE <=9 only
[4929] Fix | Delete
// IE <=9 replaces <option> tags with their contents when inserted outside of
[4930] Fix | Delete
// the select element.
[4931] Fix | Delete
div.innerHTML = "<option></option>";
[4932] Fix | Delete
support.option = !!div.lastChild;
[4933] Fix | Delete
} )();
[4934] Fix | Delete
[4935] Fix | Delete
[4936] Fix | Delete
// We have to close these tags to support XHTML (#13200)
[4937] Fix | Delete
var wrapMap = {
[4938] Fix | Delete
[4939] Fix | Delete
// XHTML parsers do not magically insert elements in the
[4940] Fix | Delete
// same way that tag soup parsers do. So we cannot shorten
[4941] Fix | Delete
// this by omitting <tbody> or other required elements.
[4942] Fix | Delete
thead: [ 1, "<table>", "</table>" ],
[4943] Fix | Delete
col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
[4944] Fix | Delete
tr: [ 2, "<table><tbody>", "</tbody></table>" ],
[4945] Fix | Delete
td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
[4946] Fix | Delete
[4947] Fix | Delete
_default: [ 0, "", "" ]
[4948] Fix | Delete
};
[4949] Fix | Delete
[4950] Fix | Delete
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
[4951] Fix | Delete
wrapMap.th = wrapMap.td;
[4952] Fix | Delete
[4953] Fix | Delete
// Support: IE <=9 only
[4954] Fix | Delete
if ( !support.option ) {
[4955] Fix | Delete
wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ];
[4956] Fix | Delete
}
[4957] Fix | Delete
[4958] Fix | Delete
[4959] Fix | Delete
function getAll( context, tag ) {
[4960] Fix | Delete
[4961] Fix | Delete
// Support: IE <=9 - 11 only
[4962] Fix | Delete
// Use typeof to avoid zero-argument method invocation on host objects (#15151)
[4963] Fix | Delete
var ret;
[4964] Fix | Delete
[4965] Fix | Delete
if ( typeof context.getElementsByTagName !== "undefined" ) {
[4966] Fix | Delete
ret = context.getElementsByTagName( tag || "*" );
[4967] Fix | Delete
[4968] Fix | Delete
} else if ( typeof context.querySelectorAll !== "undefined" ) {
[4969] Fix | Delete
ret = context.querySelectorAll( tag || "*" );
[4970] Fix | Delete
[4971] Fix | Delete
} else {
[4972] Fix | Delete
ret = [];
[4973] Fix | Delete
}
[4974] Fix | Delete
[4975] Fix | Delete
if ( tag === undefined || tag && nodeName( context, tag ) ) {
[4976] Fix | Delete
return jQuery.merge( [ context ], ret );
[4977] Fix | Delete
}
[4978] Fix | Delete
[4979] Fix | Delete
return ret;
[4980] Fix | Delete
}
[4981] Fix | Delete
[4982] Fix | Delete
[4983] Fix | Delete
// Mark scripts as having already been evaluated
[4984] Fix | Delete
function setGlobalEval( elems, refElements ) {
[4985] Fix | Delete
var i = 0,
[4986] Fix | Delete
l = elems.length;
[4987] Fix | Delete
[4988] Fix | Delete
for ( ; i < l; i++ ) {
[4989] Fix | Delete
dataPriv.set(
[4990] Fix | Delete
elems[ i ],
[4991] Fix | Delete
"globalEval",
[4992] Fix | Delete
!refElements || dataPriv.get( refElements[ i ], "globalEval" )
[4993] Fix | Delete
);
[4994] Fix | Delete
}
[4995] Fix | Delete
}
[4996] Fix | Delete
[4997] Fix | Delete
[4998] Fix | Delete
var rhtml = /<|&#?\w+;/;
[4999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function