r.js
/**
     * Mixes additional source config into target config, and merges some
     * nested config, like paths, correctly.
     */
Mixes additional source config into target config, and merges some
nested config, like paths, correctly.
Mixes additional source config into target config and merges some nested config like paths correctly .
function mixConfig(target, source) {
        var prop, value;
        for (prop in source) {
            if (source.hasOwnProperty(prop)) {
                value = source[prop];
                if (typeof value === 'object' && value &&
                    !lang.isArray(value) && !lang.isFunction(value) &&
                    !lang.isRegExp(value)) {
                    if (!target[prop]) {
                        target[prop] = {};
                    }
                    lang.mixin(target[prop], source[prop], true);
                } else {
                    target[prop] = source[prop];
                }
            }
        }
    }
function mixConfig ( target , source ) { var prop , value ; for ( prop in source ) { if ( source . hasOwnProperty ( prop ) ) { value = source [ prop ] ; if ( typeof value === 'object' && value && ! lang . isArray ( value ) && ! lang . isFunction ( value ) && ! lang . isRegExp ( value ) ) { if ( ! target [ prop ] ) { target [ prop ] = { } ; } lang . mixin ( target [ prop ] , source [ prop ] , true ) ; } else { target [ prop ] = source [ prop ] ; } } } }
Mixes additional source config into target config, and merges some
 nested config, like paths, correctly.
Mixes additional source config into target config and merges some nested config like paths correctly .
//If the value of the property is a plain object, then //allow a one-level-deep mixing of it.