From 20ae6a8195d5e4062d46746d70099f54330cf685 Mon Sep 17 00:00:00 2001 From: Kevin Abel <kevin.abel.0@gmail.com> Date: Thu, 19 Jun 2014 14:05:44 -0500 Subject: [PATCH] Use delete to ensure removed bus markers are not kept --- www/js/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/map.js b/www/js/map.js index a5d24c00..2bcf2c3b 100644 --- a/www/js/map.js +++ b/www/js/map.js @@ -313,7 +313,7 @@ if (value.vehicle.oos || (value.vehicle.routeID != 24 && value.vehicle.routeID != 25)) { if (markers['buses'][value.vehicle.id]) { markers['buses'][value.vehicle.id].setMap(null); - markers['buses'][value.vehicle.id] = null; + delete markers['buses'][value.vehicle.id]; } return; -- GitLab