MCPcopy Index your code
hub / github.com/JsAaron/jQuery / trigger

Function trigger

1.6.1/src/event.js:853–866  ·  view source on GitHub ↗
( type, elem, args )

Source from the content-addressed store, hash-verified

851}
852
853function trigger( type, elem, args ) {
854 // Piggyback on a donor event to simulate a different one.
855 // Fake originalEvent to avoid donor's stopPropagation, but if the
856 // simulated event prevents default then we do the same on the donor.
857 // Don't pass args or remember liveFired; they apply to the donor event.
858 var event = jQuery.extend( {}, args[ 0 ] );
859 event.type = type;
860 event.originalEvent = {};
861 event.liveFired = undefined;
862 jQuery.event.handle.call( elem, event );
863 if ( event.isDefaultPrevented() ) {
864 args[ 0 ].preventDefault();
865 }
866}
867
868// Create "bubbling" focus and blur events
869if ( !jQuery.support.focusinBubbles ) {

Callers 1

event.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected