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

Method isUpgraded

src/custom-element.js:347–349  ·  view source on GitHub ↗

* Whether the element has been upgraded yet. Always returns false when * the element has not yet been added to DOM. After the element has been * added to DOM, the value depends on the `BaseElement` implementation and * its `upgradeElement` callback. * @return {boolean} * @fi

()

Source from the content-addressed store, hash-verified

345 * @final
346 */
347 isUpgraded() {
348 return this.upgradeState_ == UpgradeState_Enum.UPGRADED;
349 }
350
351 /** @return {!Promise} */
352 whenUpgraded() {

Callers 7

getDefaultActionAliasMethod · 0.95
preconnectMethod · 0.95
connectedCallbackMethod · 0.95
buildMethod · 0.80
measureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected