core/utils/lib/config.js
function(namespace, config) {
        if ( typeof(config) == "undefined" )
            var config = self.getSync(app);

        if (config != null) {
            var split = namespace.split('.'), k=0;
            while (k<split.length) {
                config = config[split[k++]]
            }
            return config
        } else {
            return null
        }
    }
function(namespace, config) {
        if ( typeof(config) == "undefined" )
            var config = self.getSync(app);

        if (config != null) {
            var split = namespace.split('.'), k=0;
            while (k<split.length) {
                config = config[split[k++]]
            }
            return config
        } else {
            return null
        }
    }
function ( namespace , config ) { if ( typeof ( config ) == "undefined" ) var config = self . getSync ( app ) ; if ( config != null ) { var split = namespace . split ( '.' ) , k = 0 ; while ( k < split . length ) { config = config [ split [ k ++ ] ] } return config } else { return null } }
Get var value by namespace

@param {string} namespace
@param {object} [config ] - Config object
@return {*} value - Can be String or Array

@private
Get var value by namespace