lib/common/config.js
function (key, options) {
            var ret;
            if (this.data && key in this.data) {
                ret = this.data[key];
                try {
                    ret = JSON.parse(ret);
                } catch (e) {} // ignore JSON parse errors since we only want to parse it if it is JSON
            }
            if (options && _.isFunction(options.success)) {
                options.success(ret);
            }

            return ret;
        }
function (key, options) {
            var ret;
            if (this.data && key in this.data) {
                ret = this.data[key];
                try {
                    ret = JSON.parse(ret);
                } catch (e) {} // ignore JSON parse errors since we only want to parse it if it is JSON
            }
            if (options && _.isFunction(options.success)) {
                options.success(ret);
            }

            return ret;
        }
function ( key , options ) { var ret ; if ( this . data && key in this . data ) { ret = this . data [ key ] ; try { ret = JSON . parse ( ret ) ; } catch ( e ) { } // ignore JSON parse errors since we only want to parse it if it is JSON } if ( options && _ . isFunction ( options . success ) ) { options . success ( ret ) ; } return ret ; }
Gets the value for a key
@param key
@return {*}
Gets the value for a key