app/styleguide/js/libs/highlighter/shCore.js
/**
 * Merges two objects. Values from obj2 override values in obj1.
 * Function is NOT recursive and works only for one dimensional objects.
 * @param {Object} obj1 First object.
 * @param {Object} obj2 Second object.
 * @return {Object} Returns combination of both objects.
 */
Merges two objects. Values from obj2 override values in obj1.
Function is NOT recursive and works only for one dimensional objects.
@param {Object} obj1 First object.
@param {Object} obj2 Second object.
@return {Object} Returns combination of both objects.
Merges two objects . Values from obj2 override values in obj1 . Function is NOT recursive and works only for one dimensional objects . @param { Object } obj1 First object . @param { Object } obj2 Second object . @return { Object } Returns combination of both objects .
function merge(obj1, obj2)
{
  var result = {}, name;
  for (name in obj1) 
    result[name] = obj1[name];
  for (name in obj2) 
    result[name] = obj2[name];
  return result;
}
function merge ( obj1 , obj2 ) { var result = { } , name ; for ( name in obj1 ) result [ name ] = obj1 [ name ] ; for ( name in obj2 ) result [ name ] = obj2 [ name ] ; return result ; }
Merges two objects.
Merges two objects .