Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(configParser): load new functions from configs
Browse files Browse the repository at this point in the history
Closes #1043
  • Loading branch information
thetoothpick authored and juliemr committed Jul 11, 2014
1 parent 26366e5 commit 985ff27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/configParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ var ConfigParser = function() {
*/
var merge_ = function(into, from) {
for (var key in from) {
if (into[key] instanceof Object && !(into[key] instanceof Array)) {
if (into[key] instanceof Object &&
!(into[key] instanceof Array) &&
!(into[key] instanceof Function)) {
merge_(into[key], from[key]);
} else {
into[key] = from[key];
Expand Down

0 comments on commit 985ff27

Please sign in to comment.