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 8848004 · Browse files · 1 file+2 added−24 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+2 added−24 removed

  • other:+2 added−24 removed

1 file+2 added−24 removed

modified:lib/application.js+2 added-24 removed
82 unmodified lines
8384 // always parse req.query85 this.use(connect.query());8687 /**88 * Assign several locals with the given `obj`,89 * or return the locals.90 *91 * @param {Object} obj92 * @return {Object|HTTPServer}93 * @api public94 */9587 this.locals = function(obj){97 for (var key in obj) {98 self.locals[key] = obj[key];99 }88 for (var key in obj) self.locals[key] = obj[key];89 return self;90 };9192 // expose objects to each other
7 unmodified lines
100101 // charset102 if (charset = self.set('charset')) res.charset = charset;103115 /**116 * Assign several locals with the given `obj`,117 * or return the locals.118 *119 * @param {Object} obj120 * @return {Object|ServerResponse}121 * @api public122 */123104 res.locals = function(obj){125 for (var key in obj) {126 res.locals[key] = obj[key];127 }105 for (var key in obj) res.locals[key] = obj[key];106 return res;107 };108109 next();
485 unmodified lines