From 4185fa37d3a5a7b52049089507d5a5b0a489ac68 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sat, 06 Jul 2019 00:01:22 +0000
Subject: [PATCH] Remove redundant featureClicked calls without an argument

---
 map.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/map.js b/map.js
index bd9765b..bc0370f 100644
--- a/map.js
+++ b/map.js
@@ -344,7 +344,7 @@
 				if(vehicle_feature) {
 					vehicles_source[prefix].removeFeature(vehicle_feature);
 					if(feature_clicked && feature_clicked.getId() === vehicle_feature.getId()) {
-						featureClicked();
+						panel.close();
 					}
 				}
 				continue;
@@ -747,7 +747,6 @@
 	var feature = features[0];
 	
 	if(features.length > 1) {
-		featureClicked();
 		panel.show(listFeatures(features));
 		return;
 	}

--
Gitblit v1.9.1