source/res/functions.js
function supersede(target, source, force, deepStringMixin) {
    if (source) {
        eachProp(source, function (value, prop) {
            if (hasProp(target, prop)) {
                if (deepStringMixin && typeof value === 'object' && value && !isArray(value) && !isFunction(value) && !(value instanceof RegExp)) {

                    if (!target[prop]) {
                        target[prop] = {};
                    }
                    supersede(target[prop], value, force, deepStringMixin);
                } else {
                    target[prop] = value;
                }
            }
        });
    }
    return target;
}
function supersede(target, source, force, deepStringMixin) {
    if (source) {
        eachProp(source, function (value, prop) {
            if (hasProp(target, prop)) {
                if (deepStringMixin && typeof value === 'object' && value && !isArray(value) && !isFunction(value) && !(value instanceof RegExp)) {

                    if (!target[prop]) {
                        target[prop] = {};
                    }
                    supersede(target[prop], value, force, deepStringMixin);
                } else {
                    target[prop] = value;
                }
            }
        });
    }
    return target;
}
function supersede ( target , source , force , deepStringMixin ) { if ( source ) { eachProp ( source , function ( value , prop ) { if ( hasProp ( target , prop ) ) { if ( deepStringMixin && typeof value === 'object' && value && ! isArray ( value ) && ! isFunction ( value ) && ! ( value instanceof RegExp ) ) { if ( ! target [ prop ] ) { target [ prop ] = { } ; } supersede ( target [ prop ] , value , force , deepStringMixin ) ; } else { target [ prop ] = value ; } } } ) ; } return target ; }
Simple function to make a supersede the properties between two objects.
The properties into the same.
Simple function to make a supersede the properties between two objects . The properties into the same .