From 734b08d9c69a5e7db8415e8a6ce9da8087649ec2 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 21 Dec 2011 16:23:09 +0530 Subject: [PATCH] remove extra loop --- source/Ox.UI/js/Video/Ox.AnnotationPanel.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source/Ox.UI/js/Video/Ox.AnnotationPanel.js b/source/Ox.UI/js/Video/Ox.AnnotationPanel.js index e1e9dd08..199a1fb9 100644 --- a/source/Ox.UI/js/Video/Ox.AnnotationPanel.js +++ b/source/Ox.UI/js/Video/Ox.AnnotationPanel.js @@ -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' })