Skip to content
Myr

Misc refactor of partial()

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 b655b8e · Browse files · 1 file+6 added−5 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+6 added−5 removed

  • other:+6 added−5 removed

1 file+6 added−5 removed

modified:lib/express/view.js+6 added-5 removed
115 unmodified lines
116 view += ext;117 }118119 // Allow collection to be passed as second param120 if (options) {120 if (options && options.hasOwnProperty('length')) {121 options = { collection: options };121 if (options.hasOwnProperty('length')) {122 options = { collection: options };123 }124 } else {125 options = {};126 }127124 // Defaults125 options = options || {};126128 // Inherit locals from parent129 options.locals = options.locals || {};130 utils.merge(options.locals, locals);131
186 unmodified lines