src/pyjamas.js
/**
     * Copies the fields of a target object into the base. If the
     * 'deep' flag is set then the merge will perform a deep copy
     * of the object before merging.
     *
     * @param base      {object}    Base object to extend
     * @param target    {object}    Data to copy
     * @param [deep]    {boolean}   If this merge should be a deep copy
     *
     * @return {object} The extended base object
     * @private
     */
Copies the fields of a target object into the base. If the
'deep' flag is set then the merge will perform a deep copy
of the object before merging.

@param base      {object}    Base object to extend
@param target    {object}    Data to copy
@param [deep]    {boolean}   If this merge should be a deep copy

@return {object} The extended base object
@private
Copies the fields of a target object into the base . If the ' deep ' flag is set then the merge will perform a deep copy of the object before merging . @param base { object } Base object to extend @param target { object } Data to copy @param [ deep ] { boolean } If this merge should be a deep copy @return { object } The extended base object @private
function merge (base, target, deep) {
        var field;
        target = deep ? clone(target) : target;
        for (field in target) {
            base[field] = target[field];
        }
        return base;
    }
function merge ( base , target , deep ) { var field ; target = deep ? clone ( target ) : target ; for ( field in target ) { base [ field ] = target [ field ] ; } return base ; }
Copies the fields of a target object into the base.
Copies the fields of a target object into the base .