remove extra loop

This commit is contained in:
j 2011-12-21 16:23:09 +05:30
parent 87ba2a10ab
commit 734b08d9c6

View file

@ -78,12 +78,7 @@ Ox.AnnotationPanel = function(options, self) {
.addClass('OxAnnotation OxTarget');
return $item;
},
items: self.options.items.map(function(v, i) {
return {
id: v.id || i + '',
value: v.value
};
}),
items: self.options.items,
max: 1,
unique: 'id'
})