give a popup that is created by a feature a reference back to that feature. thanks a million to tschaub for the lightning and helpful review (Closes #949)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@4134 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-08-30 18:33:45 +00:00
parent 2fdf43cc8c
commit 17a4129b55
2 changed files with 8 additions and 2 deletions

View File

@@ -185,6 +185,7 @@ OpenLayers.Feature = OpenLayers.Class({
this.data.popupContentHTML,
anchor,
closeBox);
this.popup.feature = this;
}
return this.popup;
},
@@ -198,6 +199,7 @@ OpenLayers.Feature = OpenLayers.Class({
* should also be able to override the destruction
*/
destroyPopup: function() {
this.popup.feature = null;
this.popup.destroy()
},