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:
@@ -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()
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user