src/js/widgets/annotationsListWidget.js
branchpopcorn-port
changeset 835 a8af9da7c622
parent 833 33a5d5882be4
child 836 526f91f5253e
equal deleted inserted replaced
834:573c7ca752e0 835:a8af9da7c622
    75 } */
    75 } */
    76   for (i = 0; i < annotations.length; i++) {
    76   for (i = 0; i < annotations.length; i++) {
    77     var obj = this.transformAnnotation(annotations[i]);
    77     var obj = this.transformAnnotation(annotations[i]);
    78     obj.iterator = i;
    78     obj.iterator = i;
    79     obj.distance = Math.abs((annotations[i].end + annotations[i].begin) / 2000 - currentTime);
    79     obj.distance = Math.abs((annotations[i].end + annotations[i].begin) / 2000 - currentTime);
    80     list.push(obj);
    80     if (!this.cinecast_version || annotations[i].type == "cinecast:UserAnnotation") {
       
    81         list.push(obj);
       
    82     }
       
    83     
    81   }
    84   }
    82   
    85   
    83   list = IriSP.underscore(list)
    86   list = IriSP.underscore(list)
    84     .chain()
    87     .chain()
    85     .sortBy(function(_o) {
    88     .sortBy(function(_o) {