Remove console logs

This commit is contained in:
Tom MacWright
2012-10-17 15:15:50 -04:00
parent 663f880f57
commit 7becc2a376
4 changed files with 13 additions and 8 deletions

View File

@@ -118,10 +118,10 @@ declare("iD.styleparser.RuleSet", null, {
// Unknown pattern
} else if ((o=this.UNKNOWN.exec(css))) {
css=css.replace(this.UNKNOWN,'');
console.log("unknown: "+o[1]);
// console.log("unknown: "+o[1]);
} else {
console.log("choked on "+css);
// console.log("choked on "+css);
return;
}
}
@@ -192,7 +192,9 @@ declare("iD.styleparser.RuleSet", null, {
else if (ps.has(a)) { ps.setPropertyFromString(a,v,isEval[a]); }
else if (ts.has(a)) { ts.setPropertyFromString(a,v,isEval[a]); }
else if (hs.has(a)) { hs.setPropertyFromString(a,v,isEval[a]); }
else { console.log(a+" not found"); }
else {
// console.log(a+" not found");
// }
}
// Add each style to list

View File

@@ -19,9 +19,9 @@ declare("iD.tags.PresetList", null, {
});
},
loaded:function(obj) {
loaded: function(obj) {
this.presets = obj;
console.log("Loaded presets for " + this.entityType);
// console.log("Loaded presets for " + this.entityType);
},
// This entity has all of the same tags as props, with all of the same
@@ -36,7 +36,6 @@ declare("iD.tags.PresetList", null, {
assembleEditorsForEntity:function(entity) {
if (entity.entityType != this.entityType) return false;
console.log(this.presets);
var presetList = {};
var editorList = [];
for (var group in this.presets) {

View File

@@ -114,7 +114,9 @@ declare("iD.tags.TagEditor", null, {
url: "presets/editors/" + editor + ".json",
// TODO: eliminate lang.hitch here
success: lang.hitch(this, this.loadedEditor, editor, destination),
error: function(err) { console.log("Couldn't load editor"); }
error: function(err) {
// console.log("Couldn't load editor");
}
});
}
},

View File

@@ -37,7 +37,9 @@ declare("iD.ui.DragAndDrop", null, {
url: "draganddrop.json",
handleAs: "json",
load: lang.hitch(this, function(obj) { this.drawGrid(obj); } ),
error: function(err) { console.log("couldn't load"); }
error: function(err) {
// console.log("couldn't load");
}
});
},