refactor(NavController): restructuring and perf improvements

This commit is contained in:
Adam Bradley
2015-10-29 14:37:49 -05:00
parent cd4f683ce5
commit 36f82b2473
45 changed files with 592 additions and 887 deletions

View File

@ -167,12 +167,10 @@ export function getQuerystring(url, key) {
const startIndex = url.indexOf('?');
if (startIndex !== -1) {
const queries = url.slice(startIndex + 1).split('&');
if (queries.length) {
queries.forEach((param) => {
var split = param.split('=');
queryParams[split[0]] = split[1].split('#')[0];
});
}
queries.forEach((param) => {
var split = param.split('=');
queryParams[split[0].toLowerCase()] = split[1].split('#')[0];
});
}
if (key) {
return queryParams[key] || '';