ZachPhillipsGary / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

InfoBubble, closeclick #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be great if InfoBubble triggered "closeclick" event when clicking on 
close link... for consistency with InfoWindow class.

InfoBubble.prototype.buildDom_ = function() {

  // ...  

  var that = this;
  google.maps.event.addDomListener(close, 'click', function() {
    that.close();
    google.maps.event.trigger(this, 'closeclick');
  });

  // ...

}

Original issue reported on code.google.com by jscriptc...@gmail.com on 20 Sep 2010 at 11:45

GoogleCodeExporter commented 9 years ago
Sorry I made a mistake in the code. Correction:

InfoBubble.prototype.buildDom_ = function() {

  // ...  

  var that = this;
  google.maps.event.addDomListener(close, 'click', function() {
    that.close();
    google.maps.event.trigger(that, 'closeclick');
  });

  // ...

}

Original comment by jscriptc...@gmail.com on 20 Sep 2010 at 11:47

GoogleCodeExporter commented 9 years ago

Original comment by lu...@google.com on 5 Oct 2010 at 11:46