mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Remove console logs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user