Skip to content
Myr

Fixed app.set() with undefined

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 b4ce57c · Browse files · 2 files+6 added−1 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+6 added−1 removed

  • tests:+5 added−0 removed
  • other:+1 added−1 removed

2 files+6 added−1 removed

modified:lib/application.js+1 added-1 removed
330 unmodified lines
331 * @api public332 */333334app.set = function(setting, val){335 if (val === undefined) {335 if (1 == arguments.length) {336 if (this.settings.hasOwnProperty(setting)) {337 return this.settings[setting];338 } else if (this.parent) {339 return this.parent.set(setting);
218 unmodified lines
modified:test/config.js+5 added