Only use console output if debug option is present

This commit is contained in:
Raul Ochoa 2014-12-05 13:01:15 +01:00
parent bf6537071a
commit 74d807a3ae

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) {