config can be value or function

This commit is contained in:
Adam Bradley
2015-06-26 22:00:37 -05:00
parent 8503e52c56
commit 94cf53cd3d
3 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import {isString, isObject, isDefined, extend} from '../util/util';
import {isString, isObject, isDefined, isFunction, extend} from '../util/util';
export class IonicConfig {
@ -67,6 +67,9 @@ export class IonicConfig {
// or it was from the users platform configs
// or it was from the default platform configs
// in that order
if (isFunction(s[arg0])) {
return s[arg0]();
}
return s[arg0];