title: An array of infoWindow in Google maps api
body: <p>I looked for error and I couldn't find it. Any google maps infoWindow always shows the same information for some reason.</p>
  
  <p>Here is a coffeescript code</p>
  
  <pre><code>infowindow = new google.maps.InfoWindow()
  for company in companiesData
    marker = new google.maps.Marker({
      position: new google.maps.LatLng(company.latitude, company.longitude)
      map: map
    })
  
    #debugger ---&gt; each company.name is different!
    google.maps.event.addListener(marker, 'click', ()-&gt;
      infowindow.setContent(company.name)
      infowindow.open(map,this)
    )
  </code></pre>
  
  <p>I debugged it and saw that each company.name was different. </p>
  
  <p>The output javascript</p>
  
  <pre><code>  infowindow = new google.maps.InfoWindow();
    _results = [];
    for (_j = 0, _len1 = companiesData.length; _j &lt; _len1; _j++) {
      company = companiesData[_j];
      marker = new google.maps.Marker({
        position: new google.maps.LatLng(company.latitude, company.longitude),
        map: map
      });
      _results.push(google.maps.event.addListener(marker, 'click', function() {
        infowindow.setContent( company.name);
        return infowindow.open(map, this);
      }));
    }
    return _results;
  });
  </code></pre>
  
  <p>So where is an error?</p>