From 933b7824a5b33917bda466f37e696a8bb7599cfe Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Thu, 18 Oct 2012 18:20:09 -0400 Subject: [PATCH] Remove more console logs --- js/iD/renderer/Map.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/iD/renderer/Map.js b/js/iD/renderer/Map.js index 6828e971f..a8cb4d043 100755 --- a/js/iD/renderer/Map.js +++ b/js/iD/renderer/Map.js @@ -206,16 +206,16 @@ declare("iD.renderer.Map", null, { refreshUI:function(entity) { // summary: Redraw the UI for an entity. - switch (entity.entityType) { - case 'node': if (this.nodeuis[entity.id]) { this.nodeuis[entity.id].redraw(); } break; - case 'way': if (this.wayuis[entity.id] ) { this.wayuis[entity.id].redraw(); } break; + if (entity.entityType === 'node') { + if (this.nodeuis[entity.id]) { this.nodeuis[entity.id].redraw(); } + } else if (entity.entityType === 'way') { + if (this.wayuis[entity.id] ) { this.wayuis[entity.id].redraw(); } } }, deleteUI:function(entity) { // summary: Delete the UI for an entity. var uis = { node: 'nodeuis', way: 'wayuis' }[entity.entityType]; - console.log('removing'); if (uis && this[uis][entity.id]) { this[uis][entity.id].removeSprites(); delete this[uis][entity.id];