MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / parseAbsoluteUrl

Function parseAbsoluteUrl

test/fixtures/foo.js:9168–9174  ·  view source on GitHub ↗
(absoluteUrl, locationObj, appBase)

Source from the content-addressed store, hash-verified

9166}
9167
9168function parseAbsoluteUrl(absoluteUrl, locationObj, appBase) {
9169 var parsedUrl = urlResolve(absoluteUrl, appBase);
9170
9171 locationObj.$$protocol = parsedUrl.protocol;
9172 locationObj.$$host = parsedUrl.hostname;
9173 locationObj.$$port = int(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;
9174}
9175
9176
9177function parseAppUrl(relativeUrl, locationObj, appBase) {

Callers 2

LocationHtml5UrlFunction · 0.85
LocationHashbangUrlFunction · 0.85

Calls 2

urlResolveFunction · 0.85
intFunction · 0.85

Tested by

no test coverage detected