MCPcopy Index your code
hub / github.com/dataarts/dat.gui / trigger

Function trigger

tests/jquery.js:3416–3429  ·  view source on GitHub ↗
( type, elem, args )

Source from the content-addressed store, hash-verified

3414}
3415
3416function trigger( type, elem, args ) {
3417 // Piggyback on a donor event to simulate a different one.
3418 // Fake originalEvent to avoid donor's stopPropagation, but if the
3419 // simulated event prevents default then we do the same on the donor.
3420 // Don't pass args or remember liveFired; they apply to the donor event.
3421 var event = jQuery.extend( {}, args[ 0 ] );
3422 event.type = type;
3423 event.originalEvent = {};
3424 event.liveFired = undefined;
3425 jQuery.event.handle.call( elem, event );
3426 if ( event.isDefaultPrevented() ) {
3427 args[ 0 ].preventDefault();
3428 }
3429}
3430
3431// Create "bubbling" focus and blur events
3432if ( !jQuery.support.focusinBubbles ) {

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…