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

Method set_

testing/fake-dom.js:465–471  ·  view source on GitHub ↗

* @param {string} href

(href)

Source from the content-addressed store, hash-verified

463 * @param {string} href
464 */
465 set_(href) {
466 const oldHash = this.url_.hash;
467 this.url_ = parseUrlDeprecated(resolveRelativeUrl(href, this.url_));
468 if (this.url_.hash != oldHash) {
469 this.win.eventListeners.fire({type: 'hashchange'});
470 }
471 }
472
473 /**
474 * @param {!Object} args

Callers 2

assignMethod · 0.95
replaceMethod · 0.95

Calls 3

parseUrlDeprecatedFunction · 0.90
resolveRelativeUrlFunction · 0.90
fireMethod · 0.45

Tested by

no test coverage detected