callback for close button on popup (closes #1061)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@4916 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2007-10-10 19:03:18 +00:00
parent 8312bb3f6d
commit 561f4d6a22
5 changed files with 43 additions and 14 deletions

View File

@@ -38,9 +38,12 @@ OpenLayers.Popup.Anchored =
* anchor - {Object} Object which must expose a 'size' <OpenLayers.Size>
* and 'offset' <OpenLayers.Pixel> (generally an <OpenLayers.Icon>).
* closeBox - {Boolean}
* closeBoxCallback - {Function} Function to be called on closeBox click.
*/
initialize:function(id, lonlat, size, contentHTML, anchor, closeBox) {
var newArguments = new Array(id, lonlat, size, contentHTML, closeBox);
initialize:function(id, lonlat, size, contentHTML, anchor, closeBox,
closeBoxCallback) {
var newArguments = new Array(id, lonlat, size, contentHTML, closeBox,
closeBoxCallback);
OpenLayers.Popup.prototype.initialize.apply(this, newArguments);
this.anchor = (anchor != null) ? anchor