Skip to content

Commit

Permalink
added type checking of setting
Browse files Browse the repository at this point in the history
  • Loading branch information
yhpark committed Sep 16, 2012
1 parent bf6862b commit caeb773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ app.set = function(setting, val){
} else if (this.parent) {
return this.parent.set(setting);
}
} else {
} else if ('object' == typeof setting) {
utils.merge(this.settings, setting);
return this;
}
Expand Down

0 comments on commit caeb773

Please sign in to comment.