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

Method create

third_party/subscriptions-project/swg.js:8774–8777  ·  view source on GitHub ↗

* @param {!../api/subscriptions.ButtonOptions|function()} optionsOrCallback * @param {function()=} callback * @return {!Element}

(optionsOrCallback, callback)

Source from the content-addressed store, hash-verified

8772 * @return {!Element}
8773 */
8774 create(optionsOrCallback, callback) {
8775 const button = createElement(this.doc_.getWin().document, 'button', {});
8776 return this.attach(button, optionsOrCallback, callback);
8777 }
8778
8779 /**
8780 * Attaches the Classic 'Subscribe With Google' button.

Callers 15

no-global.jsFile · 0.45
index.jsFile · 0.45
preFunction · 0.45
sanitizeFunction · 0.45
dedupeFunction · 0.45
getModuleGraphFunction · 0.45
flattenGraphFunction · 0.45
getLanguageStringsFunction · 0.45
mergeFallbacksFunction · 0.45
getZindexSelectorsFunction · 0.45
templateFuncFunction · 0.45
doTemplateFunction · 0.45

Calls 3

attachMethod · 0.95
createElementFunction · 0.70
getWinMethod · 0.45

Tested by

no test coverage detected