Merge pull request #3 from CartoDB/console-output-on-debug-only

Only use console output if debug option is present
This commit is contained in:
Raul Ochoa 2014-12-05 17:36:24 +01:00
commit 12d1b1a4fe

View File

@ -202,7 +202,7 @@ CartoCSS.prototype = {
layer.frames = [];
layer.zoom = tree.Zoom.all;
var props = def.toJS(parse_env);
console.log("props", props);
if (this.options.debug) console.log("props", props);
for(var v in props) {
var lyr = layer[v] = layer[v] || {
constant: false,
@ -221,7 +221,7 @@ CartoCSS.prototype = {
}
var ordered_layers = [];
console.log(layers);
if (this.options.debug) console.log(layers);
var done = {};
for(var i = 0; i < defs.length; ++i) {