MCPcopy Index your code
hub / github.com/ampproject/amphtml / replaceState

Method replaceState

testing/fake-dom.js:608–615  ·  view source on GitHub ↗

* @param {?Object} state * @param {?string} title * @param {?string} url * @param {boolean=} opt_fireEvent

(state, title, url, opt_fireEvent)

Source from the content-addressed store, hash-verified

606 * @param {boolean=} opt_fireEvent
607 */
608 replaceState(state, title, url, opt_fireEvent) {
609 const cell = this.stack[this.index];
610 cell.state = state ? freeze(state) : null;
611 cell.url = url;
612 if (opt_fireEvent) {
613 this.win.eventListeners.fire({type: 'popstate'});
614 }
615 }
616}
617
618/**

Callers 15

replaceUrlFunction · 0.80
test-history.jsFile · 0.80
applyResponseFunction · 0.80
restoreQueryMethod · 0.80
constructorMethod · 0.80
replaceUrlMethod · 0.80
nativoFunction · 0.80
removeLinkerParam_Method · 0.80

Calls 2

freezeFunction · 0.85
fireMethod · 0.45

Tested by

no test coverage detected