From 341797bc84fc0672e4eda0e79de815e7c2b123c8 Mon Sep 17 00:00:00 2001 From: Willi Date: Sun, 2 Dec 2012 15:48:37 +0100 Subject: removed obsolete line --- resources/map.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/map.js b/resources/map.js index b9edc79..6c7fbdf 100644 --- a/resources/map.js +++ b/resources/map.js @@ -44,7 +44,6 @@ $(document).ready(function() { self.layers = L.control.layers(null, { "Hospitals" : self.hospitalLayer }).addTo(map); - _.each(filteredLayers, function(layer, i) { self.layers.addOverlay(layer, self.hospitalAttributes[i]); }); @@ -116,11 +115,10 @@ $(document).ready(function() { if (isHierarchical.exec(key)) { key = key.split(':')[1]; } - if (!_.contains(self.hospitalAttributes, key) && isBoolean(val)) { + if ((!_.contains(self.hospitalAttributes, key)) && isBoolean(val)) { self.hospitalAttributes.push(key); } }); - self.hospitalAttributes; } function geojsonLayer() { -- cgit v1.2.3