remove extra loop
This commit is contained in:
parent
87ba2a10ab
commit
734b08d9c6
1 changed files with 1 additions and 6 deletions
|
@ -78,12 +78,7 @@ Ox.AnnotationPanel = function(options, self) {
|
||||||
.addClass('OxAnnotation OxTarget');
|
.addClass('OxAnnotation OxTarget');
|
||||||
return $item;
|
return $item;
|
||||||
},
|
},
|
||||||
items: self.options.items.map(function(v, i) {
|
items: self.options.items,
|
||||||
return {
|
|
||||||
id: v.id || i + '',
|
|
||||||
value: v.value
|
|
||||||
};
|
|
||||||
}),
|
|
||||||
max: 1,
|
max: 1,
|
||||||
unique: 'id'
|
unique: 'id'
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue