Update bower dependencies.
This commit is contained in:
parent
818bdad5af
commit
2beab45f32
185 changed files with 21480 additions and 8110 deletions
30
app/bower_components/jquery/src/event/trigger.js
vendored
30
app/bower_components/jquery/src/event/trigger.js
vendored
|
@ -4,24 +4,28 @@ define( [
|
|||
"../data/var/dataPriv",
|
||||
"../data/var/acceptData",
|
||||
"../var/hasOwn",
|
||||
|
||||
"../var/isFunction",
|
||||
"../var/isWindow",
|
||||
"../event"
|
||||
], function( jQuery, document, dataPriv, acceptData, hasOwn ) {
|
||||
], function( jQuery, document, dataPriv, acceptData, hasOwn, isFunction, isWindow ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;
|
||||
var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
|
||||
stopPropagationCallback = function( e ) {
|
||||
e.stopPropagation();
|
||||
};
|
||||
|
||||
jQuery.extend( jQuery.event, {
|
||||
|
||||
trigger: function( event, data, elem, onlyHandlers ) {
|
||||
|
||||
var i, cur, tmp, bubbleType, ontype, handle, special,
|
||||
var i, cur, tmp, bubbleType, ontype, handle, special, lastElement,
|
||||
eventPath = [ elem || document ],
|
||||
type = hasOwn.call( event, "type" ) ? event.type : event,
|
||||
namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
|
||||
|
||||
cur = tmp = elem = elem || document;
|
||||
cur = lastElement = tmp = elem = elem || document;
|
||||
|
||||
// Don't do events on text and comment nodes
|
||||
if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
|
||||
|
@ -73,7 +77,7 @@ jQuery.extend( jQuery.event, {
|
|||
|
||||
// Determine event propagation path in advance, per W3C events spec (#9951)
|
||||
// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
|
||||
if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
|
||||
if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) {
|
||||
|
||||
bubbleType = special.delegateType || type;
|
||||
if ( !rfocusMorph.test( bubbleType + type ) ) {
|
||||
|
@ -93,7 +97,7 @@ jQuery.extend( jQuery.event, {
|
|||
// Fire handlers on the event path
|
||||
i = 0;
|
||||
while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
|
||||
|
||||
lastElement = cur;
|
||||
event.type = i > 1 ?
|
||||
bubbleType :
|
||||
special.bindType || type;
|
||||
|
@ -125,7 +129,7 @@ jQuery.extend( jQuery.event, {
|
|||
|
||||
// Call a native DOM method on the target with the same name as the event.
|
||||
// Don't do default actions on window, that's where global variables be (#6170)
|
||||
if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
|
||||
if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) {
|
||||
|
||||
// Don't re-trigger an onFOO event when we call its FOO() method
|
||||
tmp = elem[ ontype ];
|
||||
|
@ -136,7 +140,17 @@ jQuery.extend( jQuery.event, {
|
|||
|
||||
// Prevent re-triggering of the same event, since we already bubbled it above
|
||||
jQuery.event.triggered = type;
|
||||
|
||||
if ( event.isPropagationStopped() ) {
|
||||
lastElement.addEventListener( type, stopPropagationCallback );
|
||||
}
|
||||
|
||||
elem[ type ]();
|
||||
|
||||
if ( event.isPropagationStopped() ) {
|
||||
lastElement.removeEventListener( type, stopPropagationCallback );
|
||||
}
|
||||
|
||||
jQuery.event.triggered = undefined;
|
||||
|
||||
if ( tmp ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue