From aee6b653d0677cad4210cb185a5037a9011e0e12 Mon Sep 17 00:00:00 2001 From: john carroll Date: Tue, 13 Nov 2018 14:36:51 -0500 Subject: [PATCH] remove setTimout function --- fec/fec/static/js/modules/election-map.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fec/fec/static/js/modules/election-map.js b/fec/fec/static/js/modules/election-map.js index bc221f0fc3..940579696d 100644 --- a/fec/fec/static/js/modules/election-map.js +++ b/fec/fec/static/js/modules/election-map.js @@ -142,9 +142,7 @@ ElectionMap.prototype.updateBounds = function(districts) { if (rule) { this.map.setView(rule.coords, rule.zoom); } else if (districts) { - setTimeout(function() { - self.map.flyToBounds(self.overlay.getBounds(), { duration: 0.25 }); - }, 500); + self.map.flyToBounds(self.overlay.getBounds(), { duration: 0.25 }); } };