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

Method replace

testing/fake-dom.js:496–507  ·  view source on GitHub ↗

* @param {string} href

(href)

Source from the content-addressed store, hash-verified

494 * @param {string} href
495 */
496 replace(href) {
497 this.set_(href);
498 if (this.history_) {
499 this.history_.replaceState(
500 null,
501 '',
502 this.url_.href,
503 /* fireEvent */ true
504 );
505 }
506 this.change_({replace: true});
507 }
508
509 /**
510 * @param {boolean} forceReload

Callers 15

buildFunction · 0.45
syncIncidentFunction · 0.45
index.jsFile · 0.45
selectorNeedsScopeFunction · 0.45
IdentifierFunction · 0.45
ImportDeclarationFunction · 0.45
createFunction · 0.45
stripSuffixFunction · 0.45
getTaskDescriptionFunction · 0.45
stripCommentsFunction · 0.45
stripColorsFunction · 0.45
StatementFunction · 0.45

Calls 3

set_Method · 0.95
change_Method · 0.95
replaceStateMethod · 0.80

Tested by

no test coverage detected