Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/jquery
File: jquery.js
[5000] Fix | Delete
if ( special.add ) {
[5001] Fix | Delete
special.add.call( elem, handleObj );
[5002] Fix | Delete
[5003] Fix | Delete
if ( !handleObj.handler.guid ) {
[5004] Fix | Delete
handleObj.handler.guid = handler.guid;
[5005] Fix | Delete
}
[5006] Fix | Delete
}
[5007] Fix | Delete
[5008] Fix | Delete
// Add to the element's handler list, delegates in front
[5009] Fix | Delete
if ( selector ) {
[5010] Fix | Delete
handlers.splice( handlers.delegateCount++, 0, handleObj );
[5011] Fix | Delete
} else {
[5012] Fix | Delete
handlers.push( handleObj );
[5013] Fix | Delete
}
[5014] Fix | Delete
[5015] Fix | Delete
// Keep track of which events have ever been used, for event optimization
[5016] Fix | Delete
jQuery.event.global[ type ] = true;
[5017] Fix | Delete
}
[5018] Fix | Delete
[5019] Fix | Delete
},
[5020] Fix | Delete
[5021] Fix | Delete
// Detach an event or set of events from an element
[5022] Fix | Delete
remove: function( elem, types, handler, selector, mappedTypes ) {
[5023] Fix | Delete
[5024] Fix | Delete
var j, origCount, tmp,
[5025] Fix | Delete
events, t, handleObj,
[5026] Fix | Delete
special, handlers, type, namespaces, origType,
[5027] Fix | Delete
elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
[5028] Fix | Delete
[5029] Fix | Delete
if ( !elemData || !( events = elemData.events ) ) {
[5030] Fix | Delete
return;
[5031] Fix | Delete
}
[5032] Fix | Delete
[5033] Fix | Delete
// Once for each type.namespace in types; type may be omitted
[5034] Fix | Delete
types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
[5035] Fix | Delete
t = types.length;
[5036] Fix | Delete
while ( t-- ) {
[5037] Fix | Delete
tmp = rtypenamespace.exec( types[ t ] ) || [];
[5038] Fix | Delete
type = origType = tmp[ 1 ];
[5039] Fix | Delete
namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
[5040] Fix | Delete
[5041] Fix | Delete
// Unbind all events (on this namespace, if provided) for the element
[5042] Fix | Delete
if ( !type ) {
[5043] Fix | Delete
for ( type in events ) {
[5044] Fix | Delete
jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
[5045] Fix | Delete
}
[5046] Fix | Delete
continue;
[5047] Fix | Delete
}
[5048] Fix | Delete
[5049] Fix | Delete
special = jQuery.event.special[ type ] || {};
[5050] Fix | Delete
type = ( selector ? special.delegateType : special.bindType ) || type;
[5051] Fix | Delete
handlers = events[ type ] || [];
[5052] Fix | Delete
tmp = tmp[ 2 ] &&
[5053] Fix | Delete
new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
[5054] Fix | Delete
[5055] Fix | Delete
// Remove matching events
[5056] Fix | Delete
origCount = j = handlers.length;
[5057] Fix | Delete
while ( j-- ) {
[5058] Fix | Delete
handleObj = handlers[ j ];
[5059] Fix | Delete
[5060] Fix | Delete
if ( ( mappedTypes || origType === handleObj.origType ) &&
[5061] Fix | Delete
( !handler || handler.guid === handleObj.guid ) &&
[5062] Fix | Delete
( !tmp || tmp.test( handleObj.namespace ) ) &&
[5063] Fix | Delete
( !selector || selector === handleObj.selector ||
[5064] Fix | Delete
selector === "**" && handleObj.selector ) ) {
[5065] Fix | Delete
handlers.splice( j, 1 );
[5066] Fix | Delete
[5067] Fix | Delete
if ( handleObj.selector ) {
[5068] Fix | Delete
handlers.delegateCount--;
[5069] Fix | Delete
}
[5070] Fix | Delete
if ( special.remove ) {
[5071] Fix | Delete
special.remove.call( elem, handleObj );
[5072] Fix | Delete
}
[5073] Fix | Delete
}
[5074] Fix | Delete
}
[5075] Fix | Delete
[5076] Fix | Delete
// Remove generic event handler if we removed something and no more handlers exist
[5077] Fix | Delete
// (avoids potential for endless recursion during removal of special event handlers)
[5078] Fix | Delete
if ( origCount && !handlers.length ) {
[5079] Fix | Delete
if ( !special.teardown ||
[5080] Fix | Delete
special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
[5081] Fix | Delete
[5082] Fix | Delete
jQuery.removeEvent( elem, type, elemData.handle );
[5083] Fix | Delete
}
[5084] Fix | Delete
[5085] Fix | Delete
delete events[ type ];
[5086] Fix | Delete
}
[5087] Fix | Delete
}
[5088] Fix | Delete
[5089] Fix | Delete
// Remove data and the expando if it's no longer used
[5090] Fix | Delete
if ( jQuery.isEmptyObject( events ) ) {
[5091] Fix | Delete
dataPriv.remove( elem, "handle events" );
[5092] Fix | Delete
}
[5093] Fix | Delete
},
[5094] Fix | Delete
[5095] Fix | Delete
dispatch: function( nativeEvent ) {
[5096] Fix | Delete
[5097] Fix | Delete
var i, j, ret, matched, handleObj, handlerQueue,
[5098] Fix | Delete
args = new Array( arguments.length ),
[5099] Fix | Delete
[5100] Fix | Delete
// Make a writable jQuery.Event from the native event object
[5101] Fix | Delete
event = jQuery.event.fix( nativeEvent ),
[5102] Fix | Delete
[5103] Fix | Delete
handlers = (
[5104] Fix | Delete
dataPriv.get( this, "events" ) || Object.create( null )
[5105] Fix | Delete
)[ event.type ] || [],
[5106] Fix | Delete
special = jQuery.event.special[ event.type ] || {};
[5107] Fix | Delete
[5108] Fix | Delete
// Use the fix-ed jQuery.Event rather than the (read-only) native event
[5109] Fix | Delete
args[ 0 ] = event;
[5110] Fix | Delete
[5111] Fix | Delete
for ( i = 1; i < arguments.length; i++ ) {
[5112] Fix | Delete
args[ i ] = arguments[ i ];
[5113] Fix | Delete
}
[5114] Fix | Delete
[5115] Fix | Delete
event.delegateTarget = this;
[5116] Fix | Delete
[5117] Fix | Delete
// Call the preDispatch hook for the mapped type, and let it bail if desired
[5118] Fix | Delete
if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
[5119] Fix | Delete
return;
[5120] Fix | Delete
}
[5121] Fix | Delete
[5122] Fix | Delete
// Determine handlers
[5123] Fix | Delete
handlerQueue = jQuery.event.handlers.call( this, event, handlers );
[5124] Fix | Delete
[5125] Fix | Delete
// Run delegates first; they may want to stop propagation beneath us
[5126] Fix | Delete
i = 0;
[5127] Fix | Delete
while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
[5128] Fix | Delete
event.currentTarget = matched.elem;
[5129] Fix | Delete
[5130] Fix | Delete
j = 0;
[5131] Fix | Delete
while ( ( handleObj = matched.handlers[ j++ ] ) &&
[5132] Fix | Delete
!event.isImmediatePropagationStopped() ) {
[5133] Fix | Delete
[5134] Fix | Delete
// If the event is namespaced, then each handler is only invoked if it is
[5135] Fix | Delete
// specially universal or its namespaces are a superset of the event's.
[5136] Fix | Delete
if ( !event.rnamespace || handleObj.namespace === false ||
[5137] Fix | Delete
event.rnamespace.test( handleObj.namespace ) ) {
[5138] Fix | Delete
[5139] Fix | Delete
event.handleObj = handleObj;
[5140] Fix | Delete
event.data = handleObj.data;
[5141] Fix | Delete
[5142] Fix | Delete
ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
[5143] Fix | Delete
handleObj.handler ).apply( matched.elem, args );
[5144] Fix | Delete
[5145] Fix | Delete
if ( ret !== undefined ) {
[5146] Fix | Delete
if ( ( event.result = ret ) === false ) {
[5147] Fix | Delete
event.preventDefault();
[5148] Fix | Delete
event.stopPropagation();
[5149] Fix | Delete
}
[5150] Fix | Delete
}
[5151] Fix | Delete
}
[5152] Fix | Delete
}
[5153] Fix | Delete
}
[5154] Fix | Delete
[5155] Fix | Delete
// Call the postDispatch hook for the mapped type
[5156] Fix | Delete
if ( special.postDispatch ) {
[5157] Fix | Delete
special.postDispatch.call( this, event );
[5158] Fix | Delete
}
[5159] Fix | Delete
[5160] Fix | Delete
return event.result;
[5161] Fix | Delete
},
[5162] Fix | Delete
[5163] Fix | Delete
handlers: function( event, handlers ) {
[5164] Fix | Delete
var i, handleObj, sel, matchedHandlers, matchedSelectors,
[5165] Fix | Delete
handlerQueue = [],
[5166] Fix | Delete
delegateCount = handlers.delegateCount,
[5167] Fix | Delete
cur = event.target;
[5168] Fix | Delete
[5169] Fix | Delete
// Find delegate handlers
[5170] Fix | Delete
if ( delegateCount &&
[5171] Fix | Delete
[5172] Fix | Delete
// Support: IE <=9
[5173] Fix | Delete
// Black-hole SVG <use> instance trees (trac-13180)
[5174] Fix | Delete
cur.nodeType &&
[5175] Fix | Delete
[5176] Fix | Delete
// Support: Firefox <=42
[5177] Fix | Delete
// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
[5178] Fix | Delete
// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
[5179] Fix | Delete
// Support: IE 11 only
[5180] Fix | Delete
// ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
[5181] Fix | Delete
!( event.type === "click" && event.button >= 1 ) ) {
[5182] Fix | Delete
[5183] Fix | Delete
for ( ; cur !== this; cur = cur.parentNode || this ) {
[5184] Fix | Delete
[5185] Fix | Delete
// Don't check non-elements (trac-13208)
[5186] Fix | Delete
// Don't process clicks on disabled elements (trac-6911, trac-8165, trac-11382, trac-11764)
[5187] Fix | Delete
if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) {
[5188] Fix | Delete
matchedHandlers = [];
[5189] Fix | Delete
matchedSelectors = {};
[5190] Fix | Delete
for ( i = 0; i < delegateCount; i++ ) {
[5191] Fix | Delete
handleObj = handlers[ i ];
[5192] Fix | Delete
[5193] Fix | Delete
// Don't conflict with Object.prototype properties (trac-13203)
[5194] Fix | Delete
sel = handleObj.selector + " ";
[5195] Fix | Delete
[5196] Fix | Delete
if ( matchedSelectors[ sel ] === undefined ) {
[5197] Fix | Delete
matchedSelectors[ sel ] = handleObj.needsContext ?
[5198] Fix | Delete
jQuery( sel, this ).index( cur ) > -1 :
[5199] Fix | Delete
jQuery.find( sel, this, null, [ cur ] ).length;
[5200] Fix | Delete
}
[5201] Fix | Delete
if ( matchedSelectors[ sel ] ) {
[5202] Fix | Delete
matchedHandlers.push( handleObj );
[5203] Fix | Delete
}
[5204] Fix | Delete
}
[5205] Fix | Delete
if ( matchedHandlers.length ) {
[5206] Fix | Delete
handlerQueue.push( { elem: cur, handlers: matchedHandlers } );
[5207] Fix | Delete
}
[5208] Fix | Delete
}
[5209] Fix | Delete
}
[5210] Fix | Delete
}
[5211] Fix | Delete
[5212] Fix | Delete
// Add the remaining (directly-bound) handlers
[5213] Fix | Delete
cur = this;
[5214] Fix | Delete
if ( delegateCount < handlers.length ) {
[5215] Fix | Delete
handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );
[5216] Fix | Delete
}
[5217] Fix | Delete
[5218] Fix | Delete
return handlerQueue;
[5219] Fix | Delete
},
[5220] Fix | Delete
[5221] Fix | Delete
addProp: function( name, hook ) {
[5222] Fix | Delete
Object.defineProperty( jQuery.Event.prototype, name, {
[5223] Fix | Delete
enumerable: true,
[5224] Fix | Delete
configurable: true,
[5225] Fix | Delete
[5226] Fix | Delete
get: isFunction( hook ) ?
[5227] Fix | Delete
function() {
[5228] Fix | Delete
if ( this.originalEvent ) {
[5229] Fix | Delete
return hook( this.originalEvent );
[5230] Fix | Delete
}
[5231] Fix | Delete
} :
[5232] Fix | Delete
function() {
[5233] Fix | Delete
if ( this.originalEvent ) {
[5234] Fix | Delete
return this.originalEvent[ name ];
[5235] Fix | Delete
}
[5236] Fix | Delete
},
[5237] Fix | Delete
[5238] Fix | Delete
set: function( value ) {
[5239] Fix | Delete
Object.defineProperty( this, name, {
[5240] Fix | Delete
enumerable: true,
[5241] Fix | Delete
configurable: true,
[5242] Fix | Delete
writable: true,
[5243] Fix | Delete
value: value
[5244] Fix | Delete
} );
[5245] Fix | Delete
}
[5246] Fix | Delete
} );
[5247] Fix | Delete
},
[5248] Fix | Delete
[5249] Fix | Delete
fix: function( originalEvent ) {
[5250] Fix | Delete
return originalEvent[ jQuery.expando ] ?
[5251] Fix | Delete
originalEvent :
[5252] Fix | Delete
new jQuery.Event( originalEvent );
[5253] Fix | Delete
},
[5254] Fix | Delete
[5255] Fix | Delete
special: {
[5256] Fix | Delete
load: {
[5257] Fix | Delete
[5258] Fix | Delete
// Prevent triggered image.load events from bubbling to window.load
[5259] Fix | Delete
noBubble: true
[5260] Fix | Delete
},
[5261] Fix | Delete
click: {
[5262] Fix | Delete
[5263] Fix | Delete
// Utilize native event to ensure correct state for checkable inputs
[5264] Fix | Delete
setup: function( data ) {
[5265] Fix | Delete
[5266] Fix | Delete
// For mutual compressibility with _default, replace `this` access with a local var.
[5267] Fix | Delete
// `|| data` is dead code meant only to preserve the variable through minification.
[5268] Fix | Delete
var el = this || data;
[5269] Fix | Delete
[5270] Fix | Delete
// Claim the first handler
[5271] Fix | Delete
if ( rcheckableType.test( el.type ) &&
[5272] Fix | Delete
el.click && nodeName( el, "input" ) ) {
[5273] Fix | Delete
[5274] Fix | Delete
// dataPriv.set( el, "click", ... )
[5275] Fix | Delete
leverageNative( el, "click", true );
[5276] Fix | Delete
}
[5277] Fix | Delete
[5278] Fix | Delete
// Return false to allow normal processing in the caller
[5279] Fix | Delete
return false;
[5280] Fix | Delete
},
[5281] Fix | Delete
trigger: function( data ) {
[5282] Fix | Delete
[5283] Fix | Delete
// For mutual compressibility with _default, replace `this` access with a local var.
[5284] Fix | Delete
// `|| data` is dead code meant only to preserve the variable through minification.
[5285] Fix | Delete
var el = this || data;
[5286] Fix | Delete
[5287] Fix | Delete
// Force setup before triggering a click
[5288] Fix | Delete
if ( rcheckableType.test( el.type ) &&
[5289] Fix | Delete
el.click && nodeName( el, "input" ) ) {
[5290] Fix | Delete
[5291] Fix | Delete
leverageNative( el, "click" );
[5292] Fix | Delete
}
[5293] Fix | Delete
[5294] Fix | Delete
// Return non-false to allow normal event-path propagation
[5295] Fix | Delete
return true;
[5296] Fix | Delete
},
[5297] Fix | Delete
[5298] Fix | Delete
// For cross-browser consistency, suppress native .click() on links
[5299] Fix | Delete
// Also prevent it if we're currently inside a leveraged native-event stack
[5300] Fix | Delete
_default: function( event ) {
[5301] Fix | Delete
var target = event.target;
[5302] Fix | Delete
return rcheckableType.test( target.type ) &&
[5303] Fix | Delete
target.click && nodeName( target, "input" ) &&
[5304] Fix | Delete
dataPriv.get( target, "click" ) ||
[5305] Fix | Delete
nodeName( target, "a" );
[5306] Fix | Delete
}
[5307] Fix | Delete
},
[5308] Fix | Delete
[5309] Fix | Delete
beforeunload: {
[5310] Fix | Delete
postDispatch: function( event ) {
[5311] Fix | Delete
[5312] Fix | Delete
// Support: Firefox 20+
[5313] Fix | Delete
// Firefox doesn't alert if the returnValue field is not set.
[5314] Fix | Delete
if ( event.result !== undefined && event.originalEvent ) {
[5315] Fix | Delete
event.originalEvent.returnValue = event.result;
[5316] Fix | Delete
}
[5317] Fix | Delete
}
[5318] Fix | Delete
}
[5319] Fix | Delete
}
[5320] Fix | Delete
};
[5321] Fix | Delete
[5322] Fix | Delete
// Ensure the presence of an event listener that handles manually-triggered
[5323] Fix | Delete
// synthetic events by interrupting progress until reinvoked in response to
[5324] Fix | Delete
// *native* events that it fires directly, ensuring that state changes have
[5325] Fix | Delete
// already occurred before other listeners are invoked.
[5326] Fix | Delete
function leverageNative( el, type, isSetup ) {
[5327] Fix | Delete
[5328] Fix | Delete
// Missing `isSetup` indicates a trigger call, which must force setup through jQuery.event.add
[5329] Fix | Delete
if ( !isSetup ) {
[5330] Fix | Delete
if ( dataPriv.get( el, type ) === undefined ) {
[5331] Fix | Delete
jQuery.event.add( el, type, returnTrue );
[5332] Fix | Delete
}
[5333] Fix | Delete
return;
[5334] Fix | Delete
}
[5335] Fix | Delete
[5336] Fix | Delete
// Register the controller as a special universal handler for all event namespaces
[5337] Fix | Delete
dataPriv.set( el, type, false );
[5338] Fix | Delete
jQuery.event.add( el, type, {
[5339] Fix | Delete
namespace: false,
[5340] Fix | Delete
handler: function( event ) {
[5341] Fix | Delete
var result,
[5342] Fix | Delete
saved = dataPriv.get( this, type );
[5343] Fix | Delete
[5344] Fix | Delete
if ( ( event.isTrigger & 1 ) && this[ type ] ) {
[5345] Fix | Delete
[5346] Fix | Delete
// Interrupt processing of the outer synthetic .trigger()ed event
[5347] Fix | Delete
if ( !saved ) {
[5348] Fix | Delete
[5349] Fix | Delete
// Store arguments for use when handling the inner native event
[5350] Fix | Delete
// There will always be at least one argument (an event object), so this array
[5351] Fix | Delete
// will not be confused with a leftover capture object.
[5352] Fix | Delete
saved = slice.call( arguments );
[5353] Fix | Delete
dataPriv.set( this, type, saved );
[5354] Fix | Delete
[5355] Fix | Delete
// Trigger the native event and capture its result
[5356] Fix | Delete
this[ type ]();
[5357] Fix | Delete
result = dataPriv.get( this, type );
[5358] Fix | Delete
dataPriv.set( this, type, false );
[5359] Fix | Delete
[5360] Fix | Delete
if ( saved !== result ) {
[5361] Fix | Delete
[5362] Fix | Delete
// Cancel the outer synthetic event
[5363] Fix | Delete
event.stopImmediatePropagation();
[5364] Fix | Delete
event.preventDefault();
[5365] Fix | Delete
[5366] Fix | Delete
return result;
[5367] Fix | Delete
}
[5368] Fix | Delete
[5369] Fix | Delete
// If this is an inner synthetic event for an event with a bubbling surrogate
[5370] Fix | Delete
// (focus or blur), assume that the surrogate already propagated from triggering
[5371] Fix | Delete
// the native event and prevent that from happening again here.
[5372] Fix | Delete
// This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the
[5373] Fix | Delete
// bubbling surrogate propagates *after* the non-bubbling base), but that seems
[5374] Fix | Delete
// less bad than duplication.
[5375] Fix | Delete
} else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) {
[5376] Fix | Delete
event.stopPropagation();
[5377] Fix | Delete
}
[5378] Fix | Delete
[5379] Fix | Delete
// If this is a native event triggered above, everything is now in order
[5380] Fix | Delete
// Fire an inner synthetic event with the original arguments
[5381] Fix | Delete
} else if ( saved ) {
[5382] Fix | Delete
[5383] Fix | Delete
// ...and capture the result
[5384] Fix | Delete
dataPriv.set( this, type, jQuery.event.trigger(
[5385] Fix | Delete
saved[ 0 ],
[5386] Fix | Delete
saved.slice( 1 ),
[5387] Fix | Delete
this
[5388] Fix | Delete
) );
[5389] Fix | Delete
[5390] Fix | Delete
// Abort handling of the native event by all jQuery handlers while allowing
[5391] Fix | Delete
// native handlers on the same element to run. On target, this is achieved
[5392] Fix | Delete
// by stopping immediate propagation just on the jQuery event. However,
[5393] Fix | Delete
// the native event is re-wrapped by a jQuery one on each level of the
[5394] Fix | Delete
// propagation so the only way to stop it for jQuery is to stop it for
[5395] Fix | Delete
// everyone via native `stopPropagation()`. This is not a problem for
[5396] Fix | Delete
// focus/blur which don't bubble, but it does also stop click on checkboxes
[5397] Fix | Delete
// and radios. We accept this limitation.
[5398] Fix | Delete
event.stopPropagation();
[5399] Fix | Delete
event.isImmediatePropagationStopped = returnTrue;
[5400] Fix | Delete
}
[5401] Fix | Delete
}
[5402] Fix | Delete
} );
[5403] Fix | Delete
}
[5404] Fix | Delete
[5405] Fix | Delete
jQuery.removeEvent = function( elem, type, handle ) {
[5406] Fix | Delete
[5407] Fix | Delete
// This "if" is needed for plain objects
[5408] Fix | Delete
if ( elem.removeEventListener ) {
[5409] Fix | Delete
elem.removeEventListener( type, handle );
[5410] Fix | Delete
}
[5411] Fix | Delete
};
[5412] Fix | Delete
[5413] Fix | Delete
jQuery.Event = function( src, props ) {
[5414] Fix | Delete
[5415] Fix | Delete
// Allow instantiation without the 'new' keyword
[5416] Fix | Delete
if ( !( this instanceof jQuery.Event ) ) {
[5417] Fix | Delete
return new jQuery.Event( src, props );
[5418] Fix | Delete
}
[5419] Fix | Delete
[5420] Fix | Delete
// Event object
[5421] Fix | Delete
if ( src && src.type ) {
[5422] Fix | Delete
this.originalEvent = src;
[5423] Fix | Delete
this.type = src.type;
[5424] Fix | Delete
[5425] Fix | Delete
// Events bubbling up the document may have been marked as prevented
[5426] Fix | Delete
// by a handler lower down the tree; reflect the correct value.
[5427] Fix | Delete
this.isDefaultPrevented = src.defaultPrevented ||
[5428] Fix | Delete
src.defaultPrevented === undefined &&
[5429] Fix | Delete
[5430] Fix | Delete
// Support: Android <=2.3 only
[5431] Fix | Delete
src.returnValue === false ?
[5432] Fix | Delete
returnTrue :
[5433] Fix | Delete
returnFalse;
[5434] Fix | Delete
[5435] Fix | Delete
// Create target properties
[5436] Fix | Delete
// Support: Safari <=6 - 7 only
[5437] Fix | Delete
// Target should not be a text node (trac-504, trac-13143)
[5438] Fix | Delete
this.target = ( src.target && src.target.nodeType === 3 ) ?
[5439] Fix | Delete
src.target.parentNode :
[5440] Fix | Delete
src.target;
[5441] Fix | Delete
[5442] Fix | Delete
this.currentTarget = src.currentTarget;
[5443] Fix | Delete
this.relatedTarget = src.relatedTarget;
[5444] Fix | Delete
[5445] Fix | Delete
// Event type
[5446] Fix | Delete
} else {
[5447] Fix | Delete
this.type = src;
[5448] Fix | Delete
}
[5449] Fix | Delete
[5450] Fix | Delete
// Put explicitly provided properties onto the event object
[5451] Fix | Delete
if ( props ) {
[5452] Fix | Delete
jQuery.extend( this, props );
[5453] Fix | Delete
}
[5454] Fix | Delete
[5455] Fix | Delete
// Create a timestamp if incoming event doesn't have one
[5456] Fix | Delete
this.timeStamp = src && src.timeStamp || Date.now();
[5457] Fix | Delete
[5458] Fix | Delete
// Mark it as fixed
[5459] Fix | Delete
this[ jQuery.expando ] = true;
[5460] Fix | Delete
};
[5461] Fix | Delete
[5462] Fix | Delete
// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
[5463] Fix | Delete
// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
[5464] Fix | Delete
jQuery.Event.prototype = {
[5465] Fix | Delete
constructor: jQuery.Event,
[5466] Fix | Delete
isDefaultPrevented: returnFalse,
[5467] Fix | Delete
isPropagationStopped: returnFalse,
[5468] Fix | Delete
isImmediatePropagationStopped: returnFalse,
[5469] Fix | Delete
isSimulated: false,
[5470] Fix | Delete
[5471] Fix | Delete
preventDefault: function() {
[5472] Fix | Delete
var e = this.originalEvent;
[5473] Fix | Delete
[5474] Fix | Delete
this.isDefaultPrevented = returnTrue;
[5475] Fix | Delete
[5476] Fix | Delete
if ( e && !this.isSimulated ) {
[5477] Fix | Delete
e.preventDefault();
[5478] Fix | Delete
}
[5479] Fix | Delete
},
[5480] Fix | Delete
stopPropagation: function() {
[5481] Fix | Delete
var e = this.originalEvent;
[5482] Fix | Delete
[5483] Fix | Delete
this.isPropagationStopped = returnTrue;
[5484] Fix | Delete
[5485] Fix | Delete
if ( e && !this.isSimulated ) {
[5486] Fix | Delete
e.stopPropagation();
[5487] Fix | Delete
}
[5488] Fix | Delete
},
[5489] Fix | Delete
stopImmediatePropagation: function() {
[5490] Fix | Delete
var e = this.originalEvent;
[5491] Fix | Delete
[5492] Fix | Delete
this.isImmediatePropagationStopped = returnTrue;
[5493] Fix | Delete
[5494] Fix | Delete
if ( e && !this.isSimulated ) {
[5495] Fix | Delete
e.stopImmediatePropagation();
[5496] Fix | Delete
}
[5497] Fix | Delete
[5498] Fix | Delete
this.stopPropagation();
[5499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function