ansarali / jquery-ui-map

Automatically exported from code.google.com/p/jquery-ui-map
0 stars 0 forks source link

no way to bind to infowindow events once its created via API #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There is currently no way to bind to any of the infowindow events because the 
reference to it is not accessible in any way via the API

I needed to bind to the close event and preform some cleanup, but i couldnt. i 
made some changes to the code:

(i added the cb argument)

openInfoWindow: function(a, b, cb) {
  this.get('iw').setOptions(a);
  this.get('iw').open(this.get('map'), this._unwrap(b)); 
  cb && cb(this.get('iw'));
}

Original issue reported on code.google.com by mi...@openmile.com on 13 Feb 2012 at 8:36

GoogleCodeExporter commented 8 years ago
Yeah the old addInfoWindow had a callback there. I'll add it to the code :)

Original comment by johansalllarsson on 13 Feb 2012 at 8:49