title: jQuery .extend() and .merge() giving odd results inside Autocomplete
body: <p>I've tried using merge and extend to combine arrays inside an Autocomplete ajax option - the jQuery Autocomplete UI widget.  They both work, but neither as they are supposed to.  In the code below using extend(), only the contents of objectB display in the dropdown box. If I reverse the order of the arguments, only objectA displays, i.e., the second argument displays but not the combination with the first. When I change it to merge( objectA, objectB ), only the contents of objectA display. With merge(), only the first argument displays, but not the combination of both. How do I get the combined contents of both arrays to display? (Eventually, objectB will be completely different, but I'm just trying to get the concept working.)</p>
  
  <pre><code>            $.ajax(
              {
                  url: "http://ws.geonames.org/searchJSON",
                  dataType: "jsonp",
                  data: geonamesData,
                  success: function( data )
                  {   var objectA=null;
                      var objectB=null;
                      var objectC=null;
                      response( $.map( data.geonames, function( item )
                      { objectA={
                                  label: item.name + (item.adminName2 ? ", " + item.adminName2 : "") + (item.adminName1 ? ", " + item.adminName1 : "") + ", " + item.countryName,
                                  value: item.name + (item.adminName2 ? ", " + item.adminName2 : "") + (item.adminName1 ? ", " + item.adminName1 : ""),
                                  name: item.name   
                                };
                        objectB={
                                  label: item.name + (item.adminName2 ? ", " + item.adminName2 : ""),
                                  value: item.name + (item.adminName2 ? ", " + item.adminName2 : ""),
                                  name: item.name
                                 };
                        objectC=$.extend({},objectA, objectB);
                        return objectC;
                      }));
                  }
              });
  </code></pre>