From dc69fc53601d92e1b590cb995907ef6703eb76a2 Mon Sep 17 00:00:00 2001 From: Paul Spencer Date: Tue, 8 Apr 2008 02:04:28 +0000 Subject: [PATCH] Closes #1490. Add comment to make it clear that callers of createPopup must not call destroy on returned popups but rather use the feature.destroyPopup method. git-svn-id: http://svn.openlayers.org/trunk/openlayers@6820 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Feature.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/OpenLayers/Feature.js b/lib/OpenLayers/Feature.js index 7b5a3c593c..2eaafbdba5 100644 --- a/lib/OpenLayers/Feature.js +++ b/lib/OpenLayers/Feature.js @@ -161,6 +161,10 @@ OpenLayers.Feature = OpenLayers.Class({ * * If no 'lonlat' is set, returns null. * If no this.marker has been created, no anchor is sent. + * + * Note - the returned popup object is 'owned' by the feature, so you + * cannot use the popup's destroy method to discard the popup. + * Instead, you must use the feature's destroyPopup * * Note - this.popup is set to return value *