From 7becc2a37697f4a48bdebe350d9d1d030e3237a8 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Wed, 17 Oct 2012 15:15:50 -0400 Subject: [PATCH] Remove console logs --- js/iD/styleparser/RuleSet.js | 8 +++++--- js/iD/tags/PresetList.js | 5 ++--- js/iD/tags/TagEditor.js | 4 +++- js/iD/ui/DragAndDrop.js | 4 +++- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/js/iD/styleparser/RuleSet.js b/js/iD/styleparser/RuleSet.js index b506fe79f..052efe66d 100755 --- a/js/iD/styleparser/RuleSet.js +++ b/js/iD/styleparser/RuleSet.js @@ -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 diff --git a/js/iD/tags/PresetList.js b/js/iD/tags/PresetList.js index 463b89d24..f8b0a8ace 100644 --- a/js/iD/tags/PresetList.js +++ b/js/iD/tags/PresetList.js @@ -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) { diff --git a/js/iD/tags/TagEditor.js b/js/iD/tags/TagEditor.js index 20610d6ac..c231a7375 100644 --- a/js/iD/tags/TagEditor.js +++ b/js/iD/tags/TagEditor.js @@ -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"); + } }); } }, diff --git a/js/iD/ui/DragAndDrop.js b/js/iD/ui/DragAndDrop.js index b2e7d8aae..e1fa156b6 100644 --- a/js/iD/ui/DragAndDrop.js +++ b/js/iD/ui/DragAndDrop.js @@ -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"); + } }); },