From 31e18d04d726d5a03c648976ba58b1163b18ee63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Wed, 31 Aug 2016 13:57:28 +0200 Subject: [PATCH] Undo unneeded optimization --- lib/cartodb/backends/template_maps.js | 40 ++++++++++----------------- 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/lib/cartodb/backends/template_maps.js b/lib/cartodb/backends/template_maps.js index 1a81d314..a4e7dbe3 100644 --- a/lib/cartodb/backends/template_maps.js +++ b/lib/cartodb/backends/template_maps.js @@ -473,32 +473,22 @@ o.instance = function(template, params) { all_params[k] = val; }); - // // NOTE: we're deep-cloning the layergroup here - var layergroup = JSON.parse(JSON.stringify(template.layergroup)); - var visibility = template.layer_visibility || {}; + // NOTE: we're deep-cloning the layergroup here + var layergroup = JSON.parse(JSON.stringify(template.layergroup)); + for (var i=0; i