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

Method handleContextMenuClick_

src/service/navigation.js:383–387  ·  view source on GitHub ↗

* Handles "contextmenu" event e.g. right mouse button click. * @param {!Element} element * @param {!Event} e * @private

(element, e)

Source from the content-addressed store, hash-verified

381 * @private
382 */
383 handleContextMenuClick_(element, e) {
384 // TODO(wg-performance): Handle A2A, custom link protocols, and ITP 2.3 mitigation.
385 this.expandVarsForAnchor_(element);
386 this.applyAnchorMutators_(element, e);
387 }
388
389 /**
390 * Apply anchor transformations.

Callers 1

handle_Method · 0.95

Calls 2

expandVarsForAnchor_Method · 0.95
applyAnchorMutators_Method · 0.95

Tested by

no test coverage detected