mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 14:45:12 +02:00
Better key function
This commit is contained in:
+1
-5
@@ -73,13 +73,9 @@ iD.ui.preset = function(context) {
|
||||
|
||||
}
|
||||
|
||||
function formKey(d) {
|
||||
return d.key || String(d.keys);
|
||||
}
|
||||
|
||||
function draw(selection, fields) {
|
||||
var sections = selection.selectAll('div.preset-field')
|
||||
.data(fields, formKey)
|
||||
.data(fields, function(field) { return field.id; })
|
||||
.enter()
|
||||
.append('div')
|
||||
.style('opacity', 0)
|
||||
|
||||
Reference in New Issue
Block a user