rem: jQuery.extend(deep1, deep2); 
add: jQuery.extend(true, deep1, deep2); 
context: test("$.extend(Object, Object)", function() {	expect(10);	var settings = { xnumber1: 5, xnumber2: 7, xstring1: "peter", xstring2: "pan" },		options =     { xnumber2: 1, xstring2: "x", xxx: "newstring" },		optionsCopy = { xnumber2: 1, xstring2: "x", xxx: "newstring" },		merged = { xnumber1: 5, xnumber2: 1, xstring1: "peter", xstring2: "x", xxx: "newstring" },		deep1 = { foo: { bar: true } },		deep1copy = { foo: { bar: true } },		deep2 = { foo: { baz: true } },		deep2copy = { foo: { baz: true } },		deepmerged = { foo: { bar: true, baz: true } };	jQuery.extend(settings, options);	isObj( settings, merged, "Check if extended: settings must be extended" );	isObj( options, optionsCopy, "Check if not modified: options must not be modified" );	jQuery.extend(settings, null, options);	isObj( settings, merged, "Check if extended: settings must be extended" );	isObj( options, optionsCopy, "Check if not modified: options must not be modified" );	jQuery.extend(deep1, deep2);	isObj( deep1.foo, deepmerged.foo, "Check if foo: settings must be extended" );	isObj( deep2.foo, deep2copy.foo, "Check if not deep2: options must not be modified" );	var defaults = { xnumber1: 5, xnumber2: 7, xstring1: "peter", xstring2: "pan" },		defaultsCopy = { xnumber1: 5, xnumber2: 7, xstring1: "peter", xstring2: "pan" },		options1 =     { xnumber2: 1, xstring2: "x" },		options1Copy = { xnumber2: 1, xstring2: "x" },		options2 =     { xstring2: "xx", xxx: "newstringx" },		options2Copy = { xstring2: "xx", xxx: "newstringx" },		merged2 = { xnumber1: 5, xnumber2: 1, xstring1: "peter", xstring2: "xx", xxx: "newstringx" };	var settings = jQuery.extend({}, defaults, options1, options2);	isObj( settings, merged2, "Check if extended: settings must be extended" );	isObj( defaults, defaultsCopy, "Check if not modified: options1 must not be modified" );	isObj( options1, options1Copy, "Check if not modified: options1 must not be modified" );	isObj( options2, options2Copy, "Check if not modified: options2 must not be modified" );});
meta: 1307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1307/e112e6b04d1736d3a847d44b96f7178175e17a15/coreTest.js/buggy/src/jquery/coreTest.js