src/js/serializers/JSONSerializer.js
branchpopcorn-port
changeset 320 b693ba1a83be
parent 317 a3492448fa9a
child 352 cc2cdecc5ce5
equal deleted inserted replaced
319:ad028d8c748b 320:b693ba1a83be
   128   
   128   
   129   var i;
   129   var i;
   130  
   130  
   131   for (i in this._data.annotations) {
   131   for (i in this._data.annotations) {
   132     var annotation = this._data.annotations[i];
   132     var annotation = this._data.annotations[i];
   133     if (annotation.meta["id-ref"] == view_type && annotation.begin < currentTimeMs && annotation.end > currentTimeMs)
   133     
       
   134     if (annotation.meta["id-ref"] === view_type && annotation.begin <= currentTimeMs && annotation.end >= currentTimeMs)
   134       ret_array.push(annotation);
   135       ret_array.push(annotation);
   135   }
   136   }
   136   
   137 
   137   return ret_array;
   138   return ret_array;
   138 };
   139 };