MCPcopy Create free account
hub / github.com/ampproject/amphtml / addGlobalMethodHandler

Method addGlobalMethodHandler

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

* Registers the action handler for a common method. * @param {string} name * @param {ActionHandlerDef} handler * @param {ActionTrust_Enum} minTrust

(name, handler, minTrust = ActionTrust_Enum.DEFAULT)

Source from the content-addressed store, hash-verified

399 * @param {ActionTrust_Enum} minTrust
400 */
401 addGlobalMethodHandler(name, handler, minTrust = ActionTrust_Enum.DEFAULT) {
402 this.globalMethodHandlers_[name] = {handler, minTrust};
403 }
404
405 /**
406 * Triggers the specified event on the target element.

Callers 2

test-action.jsFile · 0.80
installActions_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected