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

Method clickFun

third_party/subscriptions-project/swg.js:8972–8977  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

8970 const options = this.getOptions_(optionsOrCallback);
8971 const callback = this.getCallback_(optionsOrCallback, callbackFun);
8972 const clickFun = (event) => {
8973 this.logSwgEvent_(clickEvent, true);
8974 if (typeof callback === 'function') {
8975 callback(event);
8976 }
8977 };
8978 button.addEventListener('click', clickFun);
8979 return {options, clickFun};
8980 }

Callers

nothing calls this directly

Calls 2

logSwgEvent_Method · 0.95
callbackFunction · 0.50

Tested by

no test coverage detected