From fa8a2f26f80c55877a752871263206fd9926621e Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 21 Nov 2012 15:50:31 -0800 Subject: [PATCH] A better way --- js/iD/ui/Inspector.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/iD/ui/Inspector.js b/js/iD/ui/Inspector.js index 249e5f16f..a8ea7151c 100644 --- a/js/iD/ui/Inspector.js +++ b/js/iD/ui/Inspector.js @@ -4,10 +4,7 @@ iD.Inspector = function() { function inspector(selection) { // http://jsfiddle.net/7WQjr/ selection.each(function(entity) { - // TODO: there must be a better way to do this. - d3.select(this).node().innerHTML = ''; - - d3.select(this).append('button') + d3.select(this).html("").append('button') .text('x') .attr('title', 'close') .attr('class', 'close')