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 visionmedia · committed by visionmedia · parent cc5983f · Browse files · 1 file+1 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

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:lib/express.core.js+1 added-2 removed
400 unmodified lines
401 if (params.hasOwnProperty(key))402 if (parts = key.split('['))403 if (parts.length > 1)404 for (i = 0, prop = params, len = parts.length; i < len; ++i) {405 var name = parts[i].replace(']', '')406 if (i == len - 1) {406 var name = parts[i].replace(']', '')407 prop[name] = params[key]408 prop = params, delete params[key]409 }410 else {411 var name = parts[i].replace(']', '')411 prop = prop[name] = prop[name] || {}412 }413 }414
258 unmodified lines