Fix saving empty tag from inspector

This commit is contained in:
Tom MacWright
2012-12-14 14:55:31 -05:00
parent 9887e9c1bf
commit 97637c0cf5
+1 -1
View File
@@ -124,7 +124,7 @@ iD.Inspector = function() {
function grabtags() {
var grabbed = [];
function grab(d) { grabbed.push(d); }
function grab(d) { if (d.key !== '') grabbed.push(d); }
inspectorwrap.selectAll('li').each(grab);
return grabbed;
}