fix for #870 - missing 'var' statement inserted

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3823 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-07-30 15:26:41 +00:00
parent 1eadf8a212
commit 35834487a4

View File

@@ -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]);