MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / parseAbsoluteUrl

Function parseAbsoluteUrl

web/static/bower_components/angular/angular.js:11359–11365  ·  view source on GitHub ↗
(absoluteUrl, locationObj)

Source from the content-addressed store, hash-verified

11357}
11358
11359function parseAbsoluteUrl(absoluteUrl, locationObj) {
11360 var parsedUrl = urlResolve(absoluteUrl);
11361
11362 locationObj.$$protocol = parsedUrl.protocol;
11363 locationObj.$$host = parsedUrl.hostname;
11364 locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;
11365}
11366
11367
11368function parseAppUrl(relativeUrl, locationObj) {

Callers 2

LocationHtml5UrlFunction · 0.85
LocationHashbangUrlFunction · 0.85

Calls 2

urlResolveFunction · 0.85
toIntFunction · 0.85

Tested by

no test coverage detected