MCPcopy
hub / github.com/ampproject/amphtml / trigger

Method trigger

src/service/action-impl.js:414–416  ·  view source on GitHub ↗

* Triggers the specified event on the target element. * @param {!Element} target * @param {string} eventType * @param {?ActionEventDef} event * @param {!ActionTrust_Enum} trust * @param {?JsonObject=} opt_args * @return {boolean} true if the target has an action.

(target, eventType, event, trust, opt_args)

Source from the content-addressed store, hash-verified

412 * @return {boolean} true if the target has an action.
413 */
414 trigger(target, eventType, event, trust, opt_args) {
415 return this.action_(target, eventType, event, trust, opt_args);
416 }
417
418 /**
419 * Triggers execution of the method on a target/method.

Callers 15

addEventMethod · 0.95
test-action.jsFile · 0.45
triggerEventMethod · 0.45
constructorMethod · 0.45
factoryFunction · 0.45
factoryFunction · 0.45
writeBufferFunction · 0.45
maskScopeFunction · 0.45
patchValhookFunction · 0.45
setterFunction · 0.45

Calls 1

action_Method · 0.95

Tested by

no test coverage detected