From 85445a5c1b4fb8cf5b5ba4e5e7764aa59824efa5 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Mon, 23 Mar 2015 11:07:13 +0100 Subject: [PATCH] cleanup --- history.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/history.js b/history.js index f31eb28..7785273 100644 --- a/history.js +++ b/history.js @@ -284,11 +284,11 @@ function mkmap(map, newnodes, lostnodes, onlinenodes, graph, gotoAnything) { funcDict[k] = function (d) { var m = markersDict[k] var bounds - if ("getBounds" in m) { + + if ("getBounds" in m) bounds = m.getBounds() - } else { + else bounds = L.latLngBounds([m.getLatLng()]) - } map.fitBounds(bounds, {paddingTopLeft: [getSidebarWidth(), 0]}) m.openPopup(bounds.getCenter())