Browse files

A better way

  • Loading branch information...
1 parent 12e3c37 commit fa8a2f26f80c55877a752871263206fd9926621e @jfirebaugh jfirebaugh committed Nov 21, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 js/iD/ui/Inspector.js
View
5 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')

0 comments on commit fa8a2f2

Please sign in to comment.