Skip to content
Myr

misc refactoring

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent d8d23c0 · Browse files · 2 files+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−2 removed

  • other:+3 added−2 removed

2 files+3 added−2 removed

modified:lib/router/index.js+2 added-2 removed
280 unmodified lines
281 , keys = route.keys;282 if (captures = path.exec(pathname)) {283 fn.method = method;284 fn.params = [];285 for (var j = 1, len = captures.length; j < len; ++j) {285 for (var j = 1, l = captures.length; j < l; ++j) {286 var key = keys[j-1],287 val = typeof captures[j] === 'string'287 val = 'string' == typeof captures[j]288 ? decodeURIComponent(captures[j])289 : captures[j];290 if (key) {291 fn.params[key] = val;
10 unmodified lines
modified:lib/router/route.js+1 added