Skip to content
Myr

Passing params as function args [#66]

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

authored by visionmedia · committed by visionmedia · parent eab98f1 · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:lib/express/core.js+3 added-3 removed
59 unmodified lines
60 /**61 * Execute this route's #fn with _args_,62 * returning it's return value.63 *64 * @param {mixed} args ...64 * @param {array} args65 * @return {mixed}66 * @api private67 */68 69 run: function() {70 return this.fn.apply(GLOBAL, arguments)69 run: function(args) {70 return this.fn.apply(GLOBAL, args)71 },72 73 /**74 * Normalize _path_. When a RegExp it is simply returned,
213 unmodified lines