mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
A better way
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user