src/widgets/Annotation.js
branchnew-model
changeset 922 096c06aea8b5
parent 916 ec6849bbbdcc
child 923 b3ee7d1b472a
--- a/src/widgets/Annotation.js	Wed Jun 27 19:03:18 2012 +0200
+++ b/src/widgets/Annotation.js	Wed Jun 27 19:03:37 2012 +0200
@@ -55,9 +55,7 @@
 
 IriSP.Widgets.Annotation.prototype.onTimeupdate = function() {
     var _time = Math.floor(this.player.popcorn.currentTime() * 1000),
-        _list = this.getWidgetAnnotations().filter(function(_annotation) {
-            return _annotation.begin <= _time && _annotation.end > _time;
-        });
+        _list = this.getWidgetAnnotationsAtTime();
     if (_list.length) {
         if (_list[0].id !== this.lastAnnotation) {
             this.drawAnnotation(_list[0]);