From 35834487a4ab41c9cb1b2db87bad492d76a31a4c Mon Sep 17 00:00:00 2001 From: euzuro Date: Mon, 30 Jul 2007 15:26:41 +0000 Subject: [PATCH] fix for #870 - missing 'var' statement inserted git-svn-id: http://svn.openlayers.org/trunk/openlayers@3823 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/Text.js b/lib/OpenLayers/Layer/Text.js index 91c86b1fea..97c49eaa97 100644 --- a/lib/OpenLayers/Layer/Text.js +++ b/lib/OpenLayers/Layer/Text.js @@ -159,7 +159,7 @@ OpenLayers.Layer.Text = OpenLayers.Class(OpenLayers.Layer.Markers, { * evt - {Event} */ markerClick: function(evt) { - sameMarkerClicked = (this == this.layer.selectedFeature); + var sameMarkerClicked = (this == this.layer.selectedFeature); this.layer.selectedFeature = (!sameMarkerClicked) ? this : null; for(var i=0; i < this.layer.map.popups.length; i++) { this.layer.map.removePopup(this.layer.map.popups[i]);