2015-08-16 06:59:58 +00:00
|
|
|
define( [
|
2013-10-15 14:40:48 +00:00
|
|
|
"./core",
|
2014-09-11 20:18:34 +00:00
|
|
|
"./var/document",
|
2013-10-15 14:40:48 +00:00
|
|
|
"./var/rnotwhite",
|
|
|
|
"./var/slice",
|
2014-07-17 17:25:59 +00:00
|
|
|
"./data/var/dataPriv",
|
2013-10-15 14:40:48 +00:00
|
|
|
|
|
|
|
"./core/init",
|
|
|
|
"./selector"
|
2015-11-05 02:53:09 +00:00
|
|
|
], function( jQuery, document, rnotwhite, slice, dataPriv ) {
|
2013-08-15 18:15:49 +00:00
|
|
|
|
2013-09-09 15:26:21 +00:00
|
|
|
var
|
|
|
|
rkeyEvent = /^key/,
|
2015-01-14 19:34:09 +00:00
|
|
|
rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
|
2014-12-10 00:59:56 +00:00
|
|
|
rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
|
2009-12-22 00:58:13 +00:00
|
|
|
|
2013-01-12 22:11:07 +00:00
|
|
|
function returnTrue() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
function returnFalse() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2015-03-08 04:11:11 +00:00
|
|
|
// Support: IE9
|
|
|
|
// See #13393 for more info
|
2013-04-09 01:33:25 +00:00
|
|
|
function safeActiveElement() {
|
|
|
|
try {
|
|
|
|
return document.activeElement;
|
|
|
|
} catch ( err ) { }
|
|
|
|
}
|
|
|
|
|
2015-06-01 19:34:57 +00:00
|
|
|
function on( elem, types, selector, data, fn, one ) {
|
|
|
|
var origFn, type;
|
|
|
|
|
|
|
|
// Types can be a map of types/handlers
|
|
|
|
if ( typeof types === "object" ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2015-06-01 19:34:57 +00:00
|
|
|
// ( types-Object, selector, data )
|
|
|
|
if ( typeof selector !== "string" ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2015-06-01 19:34:57 +00:00
|
|
|
// ( types-Object, data )
|
|
|
|
data = data || selector;
|
|
|
|
selector = undefined;
|
|
|
|
}
|
|
|
|
for ( type in types ) {
|
|
|
|
on( elem, type, selector, data, types[ type ], one );
|
|
|
|
}
|
|
|
|
return elem;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( data == null && fn == null ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2015-06-01 19:34:57 +00:00
|
|
|
// ( types, fn )
|
|
|
|
fn = selector;
|
|
|
|
data = selector = undefined;
|
|
|
|
} else if ( fn == null ) {
|
|
|
|
if ( typeof selector === "string" ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2015-06-01 19:34:57 +00:00
|
|
|
// ( types, selector, fn )
|
|
|
|
fn = data;
|
|
|
|
data = undefined;
|
|
|
|
} else {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2015-06-01 19:34:57 +00:00
|
|
|
// ( types, data, fn )
|
|
|
|
fn = data;
|
|
|
|
data = selector;
|
|
|
|
selector = undefined;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( fn === false ) {
|
|
|
|
fn = returnFalse;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( one === 1 ) {
|
|
|
|
origFn = fn;
|
|
|
|
fn = function( event ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2015-06-01 19:34:57 +00:00
|
|
|
// Can use an empty set, since event contains the info
|
|
|
|
jQuery().off( event );
|
|
|
|
return origFn.apply( this, arguments );
|
|
|
|
};
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2015-06-01 19:34:57 +00:00
|
|
|
// Use same guid so caller can remove using origFn
|
|
|
|
fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
|
|
|
|
}
|
|
|
|
return elem.each( function() {
|
|
|
|
jQuery.event.add( this, types, fn, data, selector );
|
2015-08-16 06:59:58 +00:00
|
|
|
} );
|
2015-06-01 19:34:57 +00:00
|
|
|
}
|
|
|
|
|
2007-12-19 01:10:20 +00:00
|
|
|
/*
|
2011-09-08 03:21:33 +00:00
|
|
|
* Helper functions for managing events -- not part of the public interface.
|
|
|
|
* Props to Dean Edwards' addEvent library for many of the ideas.
|
2007-12-19 01:10:20 +00:00
|
|
|
*/
|
|
|
|
jQuery.event = {
|
|
|
|
|
2013-01-12 22:11:07 +00:00
|
|
|
global: {},
|
|
|
|
|
2011-07-29 00:43:23 +00:00
|
|
|
add: function( elem, types, handler, data, selector ) {
|
|
|
|
|
2013-01-12 22:11:07 +00:00
|
|
|
var handleObjIn, eventHandle, tmp,
|
|
|
|
events, t, handleObj,
|
|
|
|
special, handlers, type, namespaces, origType,
|
2014-07-17 17:25:59 +00:00
|
|
|
elemData = dataPriv.get( elem );
|
2013-01-12 22:11:07 +00:00
|
|
|
|
2013-01-16 19:36:24 +00:00
|
|
|
// Don't attach events to noData or text/comment nodes (but allow plain objects)
|
2013-01-12 22:11:07 +00:00
|
|
|
if ( !elemData ) {
|
2011-02-15 21:03:23 +00:00
|
|
|
return;
|
2010-02-27 14:02:13 +00:00
|
|
|
}
|
|
|
|
|
2011-07-29 00:43:23 +00:00
|
|
|
// Caller can pass in an object of custom data in lieu of the handler
|
2010-02-05 02:36:32 +00:00
|
|
|
if ( handler.handler ) {
|
|
|
|
handleObjIn = handler;
|
|
|
|
handler = handleObjIn.handler;
|
2012-01-28 19:58:00 +00:00
|
|
|
selector = handleObjIn.selector;
|
2010-02-05 02:36:32 +00:00
|
|
|
}
|
|
|
|
|
2011-07-29 00:43:23 +00:00
|
|
|
// Make sure that the handler has a unique ID, used to find/remove it later
|
2009-04-30 01:26:09 +00:00
|
|
|
if ( !handler.guid ) {
|
2009-12-31 20:06:45 +00:00
|
|
|
handler.guid = jQuery.guid++;
|
2009-04-30 01:26:09 +00:00
|
|
|
}
|
2008-05-13 01:45:58 +00:00
|
|
|
|
2011-07-29 00:43:23 +00:00
|
|
|
// Init the element's event structure and main handler, if this is the first
|
2015-08-16 06:59:58 +00:00
|
|
|
if ( !( events = elemData.events ) ) {
|
2013-01-12 22:11:07 +00:00
|
|
|
events = elemData.events = {};
|
2010-09-29 13:46:25 +00:00
|
|
|
}
|
2015-08-16 06:59:58 +00:00
|
|
|
if ( !( eventHandle = elemData.handle ) ) {
|
2013-01-12 22:11:07 +00:00
|
|
|
eventHandle = elemData.handle = function( e ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2011-04-06 14:31:14 +00:00
|
|
|
// Discard the second event of a jQuery.event.trigger() and
|
|
|
|
// when an event is called after a page has unloaded
|
2014-07-25 19:21:22 +00:00
|
|
|
return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
|
2013-10-15 13:09:55 +00:00
|
|
|
jQuery.event.dispatch.apply( elem, arguments ) : undefined;
|
2009-12-16 21:45:00 +00:00
|
|
|
};
|
2010-01-13 16:24:54 +00:00
|
|
|
}
|
|
|
|
|
2008-04-29 23:34:50 +00:00
|
|
|
// Handle multiple events separated by a space
|
2013-09-11 01:08:01 +00:00
|
|
|
types = ( types || "" ).match( rnotwhite ) || [ "" ];
|
2013-01-12 22:11:07 +00:00
|
|
|
t = types.length;
|
|
|
|
while ( t-- ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
tmp = rtypenamespace.exec( types[ t ] ) || [];
|
|
|
|
type = origType = tmp[ 1 ];
|
|
|
|
namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
|
2013-03-13 01:06:25 +00:00
|
|
|
|
2013-02-26 17:19:04 +00:00
|
|
|
// There *must* be a type, no attaching namespace-only handlers
|
|
|
|
if ( !type ) {
|
|
|
|
continue;
|
|
|
|
}
|
2011-08-17 00:26:14 +00:00
|
|
|
|
|
|
|
// If event changes its type, use the special event handlers for the changed type
|
2011-08-13 14:46:34 +00:00
|
|
|
special = jQuery.event.special[ type ] || {};
|
2011-10-06 14:12:05 +00:00
|
|
|
|
|
|
|
// If selector defined, determine special event api type, otherwise given type
|
|
|
|
type = ( selector ? special.delegateType : special.bindType ) || type;
|
|
|
|
|
|
|
|
// Update special based on newly reset type
|
2011-08-17 00:26:14 +00:00
|
|
|
special = jQuery.event.special[ type ] || {};
|
|
|
|
|
|
|
|
// handleObj is passed to all event handlers
|
2015-08-16 06:59:58 +00:00
|
|
|
handleObj = jQuery.extend( {
|
2011-08-13 14:46:34 +00:00
|
|
|
type: type,
|
2013-01-12 22:11:07 +00:00
|
|
|
origType: origType,
|
2011-09-20 16:54:34 +00:00
|
|
|
data: data,
|
2011-07-29 00:43:23 +00:00
|
|
|
handler: handler,
|
|
|
|
guid: handler.guid,
|
|
|
|
selector: selector,
|
2012-09-10 00:47:07 +00:00
|
|
|
needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
|
2015-08-16 06:59:58 +00:00
|
|
|
namespace: namespaces.join( "." )
|
2011-10-06 14:12:05 +00:00
|
|
|
}, handleObjIn );
|
2011-08-13 14:46:34 +00:00
|
|
|
|
2011-07-29 00:43:23 +00:00
|
|
|
// Init the event handler queue if we're the first
|
2015-08-16 06:59:58 +00:00
|
|
|
if ( !( handlers = events[ type ] ) ) {
|
2010-02-04 05:20:52 +00:00
|
|
|
handlers = events[ type ] = [];
|
2011-07-29 00:43:23 +00:00
|
|
|
handlers.delegateCount = 0;
|
2011-09-20 16:54:34 +00:00
|
|
|
|
2012-12-26 21:47:31 +00:00
|
|
|
// Only use addEventListener if the special events handler returns false
|
2014-07-17 17:25:59 +00:00
|
|
|
if ( !special.setup ||
|
|
|
|
special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
|
|
|
|
|
2009-04-30 01:26:09 +00:00
|
|
|
if ( elem.addEventListener ) {
|
2015-04-27 06:49:12 +00:00
|
|
|
elem.addEventListener( type, eventHandle );
|
2009-04-30 01:26:09 +00:00
|
|
|
}
|
2007-12-19 01:10:20 +00:00
|
|
|
}
|
2008-04-29 23:34:50 +00:00
|
|
|
}
|
2010-12-26 20:28:13 +00:00
|
|
|
|
|
|
|
if ( special.add ) {
|
|
|
|
special.add.call( elem, handleObj );
|
2010-02-13 11:10:43 +00:00
|
|
|
|
|
|
|
if ( !handleObj.handler.guid ) {
|
|
|
|
handleObj.handler.guid = handler.guid;
|
|
|
|
}
|
2010-02-04 05:20:52 +00:00
|
|
|
}
|
2010-02-05 02:36:32 +00:00
|
|
|
|
2011-07-29 00:43:23 +00:00
|
|
|
// Add to the element's handler list, delegates in front
|
|
|
|
if ( selector ) {
|
|
|
|
handlers.splice( handlers.delegateCount++, 0, handleObj );
|
|
|
|
} else {
|
|
|
|
handlers.push( handleObj );
|
|
|
|
}
|
2011-09-20 16:54:34 +00:00
|
|
|
|
2011-07-29 00:43:23 +00:00
|
|
|
// Keep track of which events have ever been used, for event optimization
|
2010-02-04 05:20:52 +00:00
|
|
|
jQuery.event.global[ type ] = true;
|
2009-04-30 01:26:09 +00:00
|
|
|
}
|
2008-05-13 01:45:58 +00:00
|
|
|
|
2007-12-19 01:10:20 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// Detach an event or set of events from an element
|
2011-11-15 16:38:55 +00:00
|
|
|
remove: function( elem, types, handler, selector, mappedTypes ) {
|
2010-01-28 19:12:44 +00:00
|
|
|
|
2013-01-12 22:11:07 +00:00
|
|
|
var j, origCount, tmp,
|
|
|
|
events, t, handleObj,
|
|
|
|
special, handlers, type, namespaces, origType,
|
2014-07-17 17:25:59 +00:00
|
|
|
elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
|
2011-09-20 16:54:34 +00:00
|
|
|
|
2015-08-16 06:59:58 +00:00
|
|
|
if ( !elemData || !( events = elemData.events ) ) {
|
2010-01-28 19:12:44 +00:00
|
|
|
return;
|
|
|
|
}
|
2010-12-26 20:28:13 +00:00
|
|
|
|
2011-07-29 00:43:23 +00:00
|
|
|
// Once for each type.namespace in types; type may be omitted
|
2013-09-11 01:08:01 +00:00
|
|
|
types = ( types || "" ).match( rnotwhite ) || [ "" ];
|
2013-01-12 22:11:07 +00:00
|
|
|
t = types.length;
|
|
|
|
while ( t-- ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
tmp = rtypenamespace.exec( types[ t ] ) || [];
|
|
|
|
type = origType = tmp[ 1 ];
|
|
|
|
namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
|
2010-01-28 19:12:44 +00:00
|
|
|
|
2011-07-29 00:43:23 +00:00
|
|
|
// Unbind all events (on this namespace, if provided) for the element
|
2011-10-06 14:12:05 +00:00
|
|
|
if ( !type ) {
|
2011-11-15 16:38:55 +00:00
|
|
|
for ( type in events ) {
|
|
|
|
jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
|
2010-02-04 05:20:52 +00:00
|
|
|
}
|
2011-11-10 02:29:15 +00:00
|
|
|
continue;
|
2010-02-04 05:20:52 +00:00
|
|
|
}
|
2009-03-23 01:55:17 +00:00
|
|
|
|
2010-02-04 05:20:52 +00:00
|
|
|
special = jQuery.event.special[ type ] || {};
|
2013-01-12 22:11:07 +00:00
|
|
|
type = ( selector ? special.delegateType : special.bindType ) || type;
|
|
|
|
handlers = events[ type ] || [];
|
2015-08-16 06:59:58 +00:00
|
|
|
tmp = tmp[ 2 ] &&
|
|
|
|
new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
|
2007-12-19 01:10:20 +00:00
|
|
|
|
2011-11-14 01:50:36 +00:00
|
|
|
// Remove matching events
|
2013-01-12 22:11:07 +00:00
|
|
|
origCount = j = handlers.length;
|
|
|
|
while ( j-- ) {
|
|
|
|
handleObj = handlers[ j ];
|
2011-11-14 01:50:36 +00:00
|
|
|
|
2011-11-15 16:38:55 +00:00
|
|
|
if ( ( mappedTypes || origType === handleObj.origType ) &&
|
2012-10-22 17:28:51 +00:00
|
|
|
( !handler || handler.guid === handleObj.guid ) &&
|
2013-01-12 22:11:07 +00:00
|
|
|
( !tmp || tmp.test( handleObj.namespace ) ) &&
|
2014-07-17 17:25:59 +00:00
|
|
|
( !selector || selector === handleObj.selector ||
|
|
|
|
selector === "**" && handleObj.selector ) ) {
|
2013-01-12 22:11:07 +00:00
|
|
|
handlers.splice( j, 1 );
|
2011-11-14 01:50:36 +00:00
|
|
|
|
|
|
|
if ( handleObj.selector ) {
|
2013-01-12 22:11:07 +00:00
|
|
|
handlers.delegateCount--;
|
2011-11-14 01:50:36 +00:00
|
|
|
}
|
|
|
|
if ( special.remove ) {
|
|
|
|
special.remove.call( elem, handleObj );
|
2007-12-19 01:10:20 +00:00
|
|
|
}
|
2009-04-30 01:26:09 +00:00
|
|
|
}
|
2007-12-19 01:10:20 +00:00
|
|
|
}
|
|
|
|
|
2011-09-07 03:20:48 +00:00
|
|
|
// Remove generic event handler if we removed something and no more handlers exist
|
|
|
|
// (avoids potential for endless recursion during removal of special event handlers)
|
2013-01-12 22:11:07 +00:00
|
|
|
if ( origCount && !handlers.length ) {
|
2014-07-17 17:25:59 +00:00
|
|
|
if ( !special.teardown ||
|
|
|
|
special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
|
|
|
|
|
2010-09-08 22:13:35 +00:00
|
|
|
jQuery.removeEvent( elem, type, elemData.handle );
|
2010-02-04 05:20:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
delete events[ type ];
|
2009-04-30 01:26:09 +00:00
|
|
|
}
|
2011-09-20 01:16:20 +00:00
|
|
|
}
|
2010-01-28 19:12:44 +00:00
|
|
|
|
2015-05-06 22:29:06 +00:00
|
|
|
// Remove data and the expando if it's no longer used
|
2011-09-20 01:16:20 +00:00
|
|
|
if ( jQuery.isEmptyObject( events ) ) {
|
2015-05-06 22:29:06 +00:00
|
|
|
dataPriv.remove( elem, "handle events" );
|
2007-12-19 01:10:20 +00:00
|
|
|
}
|
|
|
|
},
|
2011-09-20 16:54:34 +00:00
|
|
|
|
2011-10-24 01:13:59 +00:00
|
|
|
dispatch: function( event ) {
|
2011-07-29 00:43:23 +00:00
|
|
|
|
|
|
|
// Make a writable jQuery.Event from the native event object
|
2012-10-20 14:01:31 +00:00
|
|
|
event = jQuery.event.fix( event );
|
2011-09-20 16:54:34 +00:00
|
|
|
|
2013-01-14 00:53:19 +00:00
|
|
|
var i, j, ret, matched, handleObj,
|
2013-01-12 22:11:07 +00:00
|
|
|
handlerQueue = [],
|
2013-08-15 18:15:49 +00:00
|
|
|
args = slice.call( arguments ),
|
2014-07-17 17:25:59 +00:00
|
|
|
handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [],
|
2013-01-12 22:11:07 +00:00
|
|
|
special = jQuery.event.special[ event.type ] || {};
|
2007-12-19 01:10:20 +00:00
|
|
|
|
2011-07-29 00:43:23 +00:00
|
|
|
// Use the fix-ed jQuery.Event rather than the (read-only) native event
|
2015-08-16 06:59:58 +00:00
|
|
|
args[ 0 ] = event;
|
2011-10-24 15:17:24 +00:00
|
|
|
event.delegateTarget = this;
|
2011-07-29 00:43:23 +00:00
|
|
|
|
2012-03-05 02:11:50 +00:00
|
|
|
// Call the preDispatch hook for the mapped type, and let it bail if desired
|
|
|
|
if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2013-01-14 00:53:19 +00:00
|
|
|
// Determine handlers
|
|
|
|
handlerQueue = jQuery.event.handlers.call( this, event, handlers );
|
2011-07-31 15:53:15 +00:00
|
|
|
|
2011-10-24 15:17:24 +00:00
|
|
|
// Run delegates first; they may want to stop propagation beneath us
|
2013-01-12 22:11:07 +00:00
|
|
|
i = 0;
|
2015-08-16 06:59:58 +00:00
|
|
|
while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
|
2011-10-24 15:17:24 +00:00
|
|
|
event.currentTarget = matched.elem;
|
|
|
|
|
2013-01-12 22:11:07 +00:00
|
|
|
j = 0;
|
2015-08-16 06:59:58 +00:00
|
|
|
while ( ( handleObj = matched.handlers[ j++ ] ) &&
|
2014-07-17 17:25:59 +00:00
|
|
|
!event.isImmediatePropagationStopped() ) {
|
2011-10-24 01:13:59 +00:00
|
|
|
|
2014-04-25 22:26:36 +00:00
|
|
|
// Triggered event must either 1) have no namespace, or 2) have namespace(s)
|
|
|
|
// a subset or equal to those in the bound event (both can have no namespace).
|
2014-07-17 17:25:59 +00:00
|
|
|
if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
|
2011-10-24 01:13:59 +00:00
|
|
|
|
|
|
|
event.handleObj = handleObj;
|
2013-01-12 22:11:07 +00:00
|
|
|
event.data = handleObj.data;
|
2011-10-24 01:13:59 +00:00
|
|
|
|
2015-08-16 06:59:58 +00:00
|
|
|
ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
|
2014-07-17 17:25:59 +00:00
|
|
|
handleObj.handler ).apply( matched.elem, args );
|
2011-10-24 01:13:59 +00:00
|
|
|
|
|
|
|
if ( ret !== undefined ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
if ( ( event.result = ret ) === false ) {
|
2011-10-24 01:13:59 +00:00
|
|
|
event.preventDefault();
|
|
|
|
event.stopPropagation();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-07-31 15:53:15 +00:00
|
|
|
}
|
2011-07-29 00:43:23 +00:00
|
|
|
|
2012-03-05 02:11:50 +00:00
|
|
|
// Call the postDispatch hook for the mapped type
|
|
|
|
if ( special.postDispatch ) {
|
|
|
|
special.postDispatch.call( this, event );
|
|
|
|
}
|
|
|
|
|
2009-12-07 00:55:08 +00:00
|
|
|
return event.result;
|
2007-12-19 01:10:20 +00:00
|
|
|
},
|
|
|
|
|
2013-01-14 00:53:19 +00:00
|
|
|
handlers: function( event, handlers ) {
|
|
|
|
var i, matches, sel, handleObj,
|
|
|
|
handlerQueue = [],
|
|
|
|
delegateCount = handlers.delegateCount,
|
|
|
|
cur = event.target;
|
|
|
|
|
2015-03-08 04:11:11 +00:00
|
|
|
// Support (at least): Chrome, IE9
|
2013-01-14 00:53:19 +00:00
|
|
|
// Find delegate handlers
|
|
|
|
// Black-hole SVG <use> instance trees (#13180)
|
2015-03-08 04:11:11 +00:00
|
|
|
//
|
2015-09-28 02:05:57 +00:00
|
|
|
// Support: Firefox<=42+
|
|
|
|
// Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343)
|
|
|
|
if ( delegateCount && cur.nodeType &&
|
|
|
|
( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
|
2013-01-14 00:53:19 +00:00
|
|
|
|
2013-03-13 23:23:36 +00:00
|
|
|
for ( ; cur !== this; cur = cur.parentNode || this ) {
|
2013-01-14 00:53:19 +00:00
|
|
|
|
2013-01-16 05:14:57 +00:00
|
|
|
// Don't check non-elements (#13208)
|
2013-01-14 00:53:19 +00:00
|
|
|
// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
|
2015-08-16 06:59:58 +00:00
|
|
|
if ( cur.nodeType === 1 && ( cur.disabled !== true || event.type !== "click" ) ) {
|
2013-01-14 00:53:19 +00:00
|
|
|
matches = [];
|
|
|
|
for ( i = 0; i < delegateCount; i++ ) {
|
|
|
|
handleObj = handlers[ i ];
|
2013-01-14 02:38:40 +00:00
|
|
|
|
|
|
|
// Don't conflict with Object.prototype properties (#13203)
|
|
|
|
sel = handleObj.selector + " ";
|
2013-01-14 00:53:19 +00:00
|
|
|
|
|
|
|
if ( matches[ sel ] === undefined ) {
|
|
|
|
matches[ sel ] = handleObj.needsContext ?
|
2014-12-31 23:31:27 +00:00
|
|
|
jQuery( sel, this ).index( cur ) > -1 :
|
2013-01-14 00:53:19 +00:00
|
|
|
jQuery.find( sel, this, null, [ cur ] ).length;
|
|
|
|
}
|
|
|
|
if ( matches[ sel ] ) {
|
|
|
|
matches.push( handleObj );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( matches.length ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
handlerQueue.push( { elem: cur, handlers: matches } );
|
2013-01-14 00:53:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Add the remaining (directly-bound) handlers
|
|
|
|
if ( delegateCount < handlers.length ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
handlerQueue.push( { elem: this, handlers: handlers.slice( delegateCount ) } );
|
2013-01-14 00:53:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return handlerQueue;
|
|
|
|
},
|
|
|
|
|
2011-09-25 23:56:34 +00:00
|
|
|
// Includes some event props shared by KeyEvent and MouseEvent
|
2014-12-03 20:56:50 +00:00
|
|
|
props: ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " +
|
2015-08-16 06:59:58 +00:00
|
|
|
"metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " ),
|
2008-05-28 20:43:13 +00:00
|
|
|
|
2011-10-06 01:41:32 +00:00
|
|
|
fixHooks: {},
|
2008-05-28 20:43:13 +00:00
|
|
|
|
2011-09-25 23:56:34 +00:00
|
|
|
keyHooks: {
|
2015-08-16 06:59:58 +00:00
|
|
|
props: "char charCode key keyCode".split( " " ),
|
2011-09-25 23:56:34 +00:00
|
|
|
filter: function( event, original ) {
|
|
|
|
|
|
|
|
// Add which for key events
|
|
|
|
if ( event.which == null ) {
|
|
|
|
event.which = original.charCode != null ? original.charCode : original.keyCode;
|
|
|
|
}
|
|
|
|
|
|
|
|
return event;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
mouseHooks: {
|
2014-07-17 17:25:59 +00:00
|
|
|
props: ( "button buttons clientX clientY offsetX offsetY pageX pageY " +
|
2015-08-16 06:59:58 +00:00
|
|
|
"screenX screenY toElement" ).split( " " ),
|
2011-09-25 23:56:34 +00:00
|
|
|
filter: function( event, original ) {
|
|
|
|
var eventDoc, doc, body,
|
2012-12-26 22:29:17 +00:00
|
|
|
button = original.button;
|
2011-09-25 23:56:34 +00:00
|
|
|
|
|
|
|
// Calculate pageX/Y if missing and clientX/Y available
|
|
|
|
if ( event.pageX == null && original.clientX != null ) {
|
|
|
|
eventDoc = event.target.ownerDocument || document;
|
|
|
|
doc = eventDoc.documentElement;
|
|
|
|
body = eventDoc.body;
|
|
|
|
|
2014-07-17 17:25:59 +00:00
|
|
|
event.pageX = original.clientX +
|
|
|
|
( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) -
|
|
|
|
( doc && doc.clientLeft || body && body.clientLeft || 0 );
|
|
|
|
event.pageY = original.clientY +
|
|
|
|
( doc && doc.scrollTop || body && body.scrollTop || 0 ) -
|
|
|
|
( doc && doc.clientTop || body && body.clientTop || 0 );
|
2011-09-25 23:56:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Add which for click: 1 === left; 2 === middle; 3 === right
|
|
|
|
// Note: button is not normalized, so don't use it
|
|
|
|
if ( !event.which && button !== undefined ) {
|
2011-10-06 14:12:05 +00:00
|
|
|
event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
|
2011-09-25 23:56:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return event;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2009-04-30 01:26:09 +00:00
|
|
|
fix: function( event ) {
|
2010-04-24 21:15:45 +00:00
|
|
|
if ( event[ jQuery.expando ] ) {
|
2008-04-27 23:08:31 +00:00
|
|
|
return event;
|
2009-04-30 01:26:09 +00:00
|
|
|
}
|
2008-05-13 01:45:58 +00:00
|
|
|
|
2011-09-25 23:56:34 +00:00
|
|
|
// Create a writable copy of the event object and normalize some properties
|
2013-01-27 04:48:59 +00:00
|
|
|
var i, prop, copy,
|
|
|
|
type = event.type,
|
2011-10-07 15:45:42 +00:00
|
|
|
originalEvent = event,
|
2013-01-27 04:48:59 +00:00
|
|
|
fixHook = this.fixHooks[ type ];
|
|
|
|
|
|
|
|
if ( !fixHook ) {
|
|
|
|
this.fixHooks[ type ] = fixHook =
|
|
|
|
rmouseEvent.test( type ) ? this.mouseHooks :
|
|
|
|
rkeyEvent.test( type ) ? this.keyHooks :
|
|
|
|
{};
|
|
|
|
}
|
|
|
|
copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
|
2011-09-22 15:07:16 +00:00
|
|
|
|
2013-01-12 22:11:07 +00:00
|
|
|
event = new jQuery.Event( originalEvent );
|
2008-05-28 20:43:13 +00:00
|
|
|
|
2013-01-12 22:11:07 +00:00
|
|
|
i = copy.length;
|
|
|
|
while ( i-- ) {
|
|
|
|
prop = copy[ i ];
|
2008-05-28 20:43:13 +00:00
|
|
|
event[ prop ] = originalEvent[ prop ];
|
|
|
|
}
|
2008-05-13 01:45:58 +00:00
|
|
|
|
2015-07-27 20:14:48 +00:00
|
|
|
// Support: Safari 6-8+
|
2013-01-12 22:11:07 +00:00
|
|
|
// Target should not be a text node (#504, #13143)
|
2013-01-06 15:24:56 +00:00
|
|
|
if ( event.target.nodeType === 3 ) {
|
|
|
|
event.target = event.target.parentNode;
|
|
|
|
}
|
|
|
|
|
2013-09-11 01:08:01 +00:00
|
|
|
return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;
|
2007-12-19 01:10:20 +00:00
|
|
|
},
|
2008-05-13 01:45:58 +00:00
|
|
|
|
2007-12-19 01:10:20 +00:00
|
|
|
special: {
|
2011-11-09 00:32:25 +00:00
|
|
|
load: {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2011-11-09 00:32:25 +00:00
|
|
|
// Prevent triggered image.load events from bubbling to window.load
|
|
|
|
noBubble: true
|
|
|
|
},
|
2011-08-13 14:46:34 +00:00
|
|
|
focus: {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2012-11-23 20:03:55 +00:00
|
|
|
// Fire native event if possible so blur/focus sequence is correct
|
|
|
|
trigger: function() {
|
2013-04-09 01:33:25 +00:00
|
|
|
if ( this !== safeActiveElement() && this.focus ) {
|
2012-12-26 22:52:04 +00:00
|
|
|
this.focus();
|
|
|
|
return false;
|
2012-11-23 20:03:55 +00:00
|
|
|
}
|
|
|
|
},
|
2011-11-09 04:08:04 +00:00
|
|
|
delegateType: "focusin"
|
2011-08-13 14:46:34 +00:00
|
|
|
},
|
|
|
|
blur: {
|
2012-11-23 20:03:55 +00:00
|
|
|
trigger: function() {
|
2013-04-09 01:33:25 +00:00
|
|
|
if ( this === safeActiveElement() && this.blur ) {
|
2012-11-23 20:03:55 +00:00
|
|
|
this.blur();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
},
|
2011-11-09 04:08:04 +00:00
|
|
|
delegateType: "focusout"
|
2011-08-13 14:46:34 +00:00
|
|
|
},
|
2013-04-07 02:56:03 +00:00
|
|
|
click: {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2013-04-07 02:56:03 +00:00
|
|
|
// For checkbox, fire native event so checked state will be right
|
|
|
|
trigger: function() {
|
|
|
|
if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
|
|
|
|
this.click();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
// For cross-browser consistency, don't fire native .click() on links
|
|
|
|
_default: function( event ) {
|
|
|
|
return jQuery.nodeName( event.target, "a" );
|
|
|
|
}
|
|
|
|
},
|
2010-02-05 02:36:32 +00:00
|
|
|
|
2009-12-07 00:55:08 +00:00
|
|
|
beforeunload: {
|
2012-08-14 20:10:10 +00:00
|
|
|
postDispatch: function( event ) {
|
2010-02-27 15:03:43 +00:00
|
|
|
|
2013-04-04 20:04:39 +00:00
|
|
|
// Support: Firefox 20+
|
|
|
|
// Firefox doesn't alert if the returnValue field is not set.
|
2014-03-04 03:43:51 +00:00
|
|
|
if ( event.result !== undefined && event.originalEvent ) {
|
2012-08-14 20:10:10 +00:00
|
|
|
event.originalEvent.returnValue = event.result;
|
2009-12-07 00:55:08 +00:00
|
|
|
}
|
|
|
|
}
|
2008-12-22 04:59:34 +00:00
|
|
|
}
|
2007-12-19 01:10:20 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2012-12-26 21:47:31 +00:00
|
|
|
jQuery.removeEvent = function( elem, type, handle ) {
|
2015-04-27 06:49:12 +00:00
|
|
|
|
2015-03-08 04:11:11 +00:00
|
|
|
// This "if" is needed for plain objects
|
2012-12-26 21:47:31 +00:00
|
|
|
if ( elem.removeEventListener ) {
|
2015-04-27 06:49:12 +00:00
|
|
|
elem.removeEventListener( type, handle );
|
2012-12-26 21:47:31 +00:00
|
|
|
}
|
|
|
|
};
|
2010-01-28 20:25:52 +00:00
|
|
|
|
2011-04-12 23:29:09 +00:00
|
|
|
jQuery.Event = function( src, props ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2008-12-29 21:57:29 +00:00
|
|
|
// Allow instantiation without the 'new' keyword
|
2015-08-16 06:59:58 +00:00
|
|
|
if ( !( this instanceof jQuery.Event ) ) {
|
2011-04-12 23:29:09 +00:00
|
|
|
return new jQuery.Event( src, props );
|
2009-04-30 01:26:09 +00:00
|
|
|
}
|
2009-03-23 01:55:17 +00:00
|
|
|
|
2008-12-25 21:44:54 +00:00
|
|
|
// Event object
|
2009-04-30 01:26:09 +00:00
|
|
|
if ( src && src.type ) {
|
2008-12-25 21:44:54 +00:00
|
|
|
this.originalEvent = src;
|
2011-04-11 15:32:23 +00:00
|
|
|
this.type = src.type;
|
|
|
|
|
2010-12-27 19:30:05 +00:00
|
|
|
// Events bubbling up the document may have been marked as prevented
|
|
|
|
// by a handler lower down the tree; reflect the correct value.
|
2013-09-19 13:53:08 +00:00
|
|
|
this.isDefaultPrevented = src.defaultPrevented ||
|
|
|
|
src.defaultPrevented === undefined &&
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2014-04-25 22:26:36 +00:00
|
|
|
// Support: Android<4.0
|
2014-03-18 21:38:08 +00:00
|
|
|
src.returnValue === false ?
|
2013-08-19 17:31:15 +00:00
|
|
|
returnTrue :
|
|
|
|
returnFalse;
|
2010-12-27 19:30:05 +00:00
|
|
|
|
2008-12-25 21:44:54 +00:00
|
|
|
// Event type
|
2009-04-30 01:26:09 +00:00
|
|
|
} else {
|
2008-12-25 21:44:54 +00:00
|
|
|
this.type = src;
|
2009-04-30 01:26:09 +00:00
|
|
|
}
|
2008-12-25 21:44:54 +00:00
|
|
|
|
2011-04-12 23:29:09 +00:00
|
|
|
// Put explicitly provided properties onto the event object
|
|
|
|
if ( props ) {
|
|
|
|
jQuery.extend( this, props );
|
|
|
|
}
|
|
|
|
|
2011-07-29 00:43:23 +00:00
|
|
|
// Create a timestamp if incoming event doesn't have one
|
2011-09-08 19:59:23 +00:00
|
|
|
this.timeStamp = src && src.timeStamp || jQuery.now();
|
2009-03-23 01:55:17 +00:00
|
|
|
|
2008-12-25 21:44:54 +00:00
|
|
|
// Mark it as fixed
|
2010-04-24 21:15:45 +00:00
|
|
|
this[ jQuery.expando ] = true;
|
2008-12-25 21:44:54 +00:00
|
|
|
};
|
2008-10-18 22:46:04 +00:00
|
|
|
|
2008-12-31 02:58:13 +00:00
|
|
|
// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
|
|
|
|
// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
|
2008-12-25 21:44:54 +00:00
|
|
|
jQuery.Event.prototype = {
|
2014-05-15 16:26:20 +00:00
|
|
|
constructor: jQuery.Event,
|
2013-01-12 22:11:07 +00:00
|
|
|
isDefaultPrevented: returnFalse,
|
|
|
|
isPropagationStopped: returnFalse,
|
|
|
|
isImmediatePropagationStopped: returnFalse,
|
|
|
|
|
2008-12-25 21:44:54 +00:00
|
|
|
preventDefault: function() {
|
2013-01-12 22:11:07 +00:00
|
|
|
var e = this.originalEvent;
|
|
|
|
|
2008-12-31 02:58:13 +00:00
|
|
|
this.isDefaultPrevented = returnTrue;
|
|
|
|
|
2015-04-27 06:57:46 +00:00
|
|
|
if ( e ) {
|
2008-12-25 21:44:54 +00:00
|
|
|
e.preventDefault();
|
2010-09-20 14:16:36 +00:00
|
|
|
}
|
2008-12-25 21:44:54 +00:00
|
|
|
},
|
|
|
|
stopPropagation: function() {
|
2013-01-12 22:11:07 +00:00
|
|
|
var e = this.originalEvent;
|
|
|
|
|
2008-12-31 02:58:13 +00:00
|
|
|
this.isPropagationStopped = returnTrue;
|
|
|
|
|
2015-04-27 06:57:46 +00:00
|
|
|
if ( e ) {
|
2008-12-25 21:44:54 +00:00
|
|
|
e.stopPropagation();
|
2009-04-30 01:26:09 +00:00
|
|
|
}
|
2008-12-25 21:44:54 +00:00
|
|
|
},
|
2009-12-22 00:58:13 +00:00
|
|
|
stopImmediatePropagation: function() {
|
2014-03-06 03:46:23 +00:00
|
|
|
var e = this.originalEvent;
|
|
|
|
|
2008-12-31 02:58:13 +00:00
|
|
|
this.isImmediatePropagationStopped = returnTrue;
|
2014-03-06 03:46:23 +00:00
|
|
|
|
2015-04-27 06:57:46 +00:00
|
|
|
if ( e ) {
|
2014-03-06 03:46:23 +00:00
|
|
|
e.stopImmediatePropagation();
|
|
|
|
}
|
|
|
|
|
2008-12-25 21:44:54 +00:00
|
|
|
this.stopPropagation();
|
2013-01-12 22:11:07 +00:00
|
|
|
}
|
2008-12-25 21:44:54 +00:00
|
|
|
};
|
2009-12-21 23:06:23 +00:00
|
|
|
|
2011-09-08 13:03:16 +00:00
|
|
|
// Create mouseenter/leave events using mouseover/out and event-time checks
|
2014-10-27 17:36:07 +00:00
|
|
|
// so that event delegation works in jQuery.
|
|
|
|
// Do the same for pointerenter/pointerleave and pointerover/pointerout
|
2015-03-08 03:23:49 +00:00
|
|
|
//
|
2015-07-27 20:29:38 +00:00
|
|
|
// Support: Safari 7 only
|
|
|
|
// Safari sends mouseenter too often; see:
|
|
|
|
// https://code.google.com/p/chromium/issues/detail?id=470258
|
|
|
|
// for the description of the bug (it existed in older Chrome versions as well).
|
2015-08-16 06:59:58 +00:00
|
|
|
jQuery.each( {
|
2009-11-30 20:04:55 +00:00
|
|
|
mouseenter: "mouseover",
|
2014-01-30 15:07:06 +00:00
|
|
|
mouseleave: "mouseout",
|
|
|
|
pointerenter: "pointerover",
|
|
|
|
pointerleave: "pointerout"
|
2009-04-30 01:26:09 +00:00
|
|
|
}, function( orig, fix ) {
|
2011-11-10 02:51:55 +00:00
|
|
|
jQuery.event.special[ orig ] = {
|
2011-08-13 14:46:34 +00:00
|
|
|
delegateType: fix,
|
|
|
|
bindType: fix,
|
|
|
|
|
2011-08-14 19:20:12 +00:00
|
|
|
handle: function( event ) {
|
2012-07-10 01:38:11 +00:00
|
|
|
var ret,
|
|
|
|
target = this,
|
2011-08-13 14:46:34 +00:00
|
|
|
related = event.relatedTarget,
|
2012-10-17 16:50:12 +00:00
|
|
|
handleObj = event.handleObj;
|
2011-08-13 14:46:34 +00:00
|
|
|
|
2015-09-18 16:59:48 +00:00
|
|
|
// For mouseenter/leave call the handler if related is outside the target.
|
2011-09-08 02:49:32 +00:00
|
|
|
// NB: No relatedTarget if the mouse left/entered the browser window
|
2015-08-16 06:59:58 +00:00
|
|
|
if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
|
2011-08-13 14:46:34 +00:00
|
|
|
event.type = handleObj.origType;
|
2011-08-14 19:20:12 +00:00
|
|
|
ret = handleObj.handler.apply( this, arguments );
|
2011-11-10 02:51:55 +00:00
|
|
|
event.type = fix;
|
2011-08-13 14:46:34 +00:00
|
|
|
}
|
2011-08-14 19:20:12 +00:00
|
|
|
return ret;
|
2008-12-21 21:22:44 +00:00
|
|
|
}
|
2009-03-23 01:55:17 +00:00
|
|
|
};
|
2015-08-16 06:59:58 +00:00
|
|
|
} );
|
2008-07-28 18:31:25 +00:00
|
|
|
|
2015-08-16 06:59:58 +00:00
|
|
|
jQuery.fn.extend( {
|
2011-07-29 00:43:23 +00:00
|
|
|
|
2015-06-01 19:34:57 +00:00
|
|
|
on: function( types, selector, data, fn ) {
|
|
|
|
return on( this, types, selector, data, fn );
|
2011-07-29 00:43:23 +00:00
|
|
|
},
|
|
|
|
one: function( types, selector, data, fn ) {
|
2015-06-01 19:34:57 +00:00
|
|
|
return on( this, types, selector, data, fn, 1 );
|
2011-07-29 00:43:23 +00:00
|
|
|
},
|
|
|
|
off: function( types, selector, fn ) {
|
2012-07-10 01:38:11 +00:00
|
|
|
var handleObj, type;
|
2011-10-24 02:25:13 +00:00
|
|
|
if ( types && types.preventDefault && types.handleObj ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2011-10-24 02:25:13 +00:00
|
|
|
// ( event ) dispatched jQuery.Event
|
2012-07-10 01:38:11 +00:00
|
|
|
handleObj = types.handleObj;
|
2011-10-27 19:31:35 +00:00
|
|
|
jQuery( types.delegateTarget ).off(
|
2014-07-17 17:25:59 +00:00
|
|
|
handleObj.namespace ?
|
|
|
|
handleObj.origType + "." + handleObj.namespace :
|
|
|
|
handleObj.origType,
|
2011-10-27 19:31:35 +00:00
|
|
|
handleObj.selector,
|
2011-10-24 02:25:13 +00:00
|
|
|
handleObj.handler
|
|
|
|
);
|
|
|
|
return this;
|
2011-07-29 00:43:23 +00:00
|
|
|
}
|
|
|
|
if ( typeof types === "object" ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2011-07-29 00:43:23 +00:00
|
|
|
// ( types-object [, selector] )
|
2012-07-10 01:38:11 +00:00
|
|
|
for ( type in types ) {
|
2011-09-08 03:21:33 +00:00
|
|
|
this.off( type, selector, types[ type ] );
|
2010-01-28 19:12:44 +00:00
|
|
|
}
|
2011-07-29 00:43:23 +00:00
|
|
|
return this;
|
2010-01-28 19:12:44 +00:00
|
|
|
}
|
2011-10-12 00:30:07 +00:00
|
|
|
if ( selector === false || typeof selector === "function" ) {
|
2015-08-16 06:59:58 +00:00
|
|
|
|
2011-07-29 00:43:23 +00:00
|
|
|
// ( types [, fn] )
|
|
|
|
fn = selector;
|
|
|
|
selector = undefined;
|
2009-09-16 02:19:18 +00:00
|
|
|
}
|
2011-07-29 00:43:23 +00:00
|
|
|
if ( fn === false ) {
|
|
|
|
fn = returnFalse;
|
|
|
|
}
|
2015-08-16 06:59:58 +00:00
|
|
|
return this.each( function() {
|
2011-07-29 00:43:23 +00:00
|
|
|
jQuery.event.remove( this, types, fn, selector );
|
2015-08-16 06:59:58 +00:00
|
|
|
} );
|
2011-09-25 23:56:34 +00:00
|
|
|
}
|
2015-08-16 06:59:58 +00:00
|
|
|
} );
|
2013-08-15 18:15:49 +00:00
|
|
|
|
2013-09-09 01:25:27 +00:00
|
|
|
return jQuery;
|
2015-08-16 06:59:58 +00:00
|
|
|
} );
|