Skip to content

Commit

Permalink
Renamed method
Browse files Browse the repository at this point in the history
  • Loading branch information
quartercastle committed Dec 12, 2017
1 parent 23f4e89 commit 99b38de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class Config {
* @param {Object} config
* @return {Object}
*/
_parseConfig (config) {
_evalFuncProps (config) {
const copyConfig = Object.assign({}, config)

for (const key in copyConfig) {
Expand All @@ -68,7 +68,7 @@ export default class Config {
}

if (!Array.isArray(copyConfig[key]) && typeof copyConfig[key] === 'object') {
copyConfig[key] = this._parseConfig(copyConfig[key])
copyConfig[key] = this._evalFuncProps(copyConfig[key])
}
}

Expand All @@ -86,7 +86,7 @@ export default class Config {
let value

if (!key) {
value = this._parseConfig(this._config)
value = this._evalFuncProps(this._config)
}

if (!value && this._flattenConfig[key]) {
Expand All @@ -100,7 +100,7 @@ export default class Config {
}

if (!Array.isArray(value) && typeof value === 'object') {
return this._parseConfig(value)
return this._evalFuncProps(value)
}

if (typeof value === 'function') {
Expand Down

0 comments on commit 99b38de

Please sign in to comment.