A better way

This commit is contained in:
John Firebaugh
2012-11-21 15:50:31 -08:00
parent 12e3c379fc
commit fa8a2f26f8

View File

@@ -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')