src/js/serializers/JSONSerializer.js
branchpopcorn-port
changeset 320 b693ba1a83be
parent 317 a3492448fa9a
child 352 cc2cdecc5ce5
--- a/src/js/serializers/JSONSerializer.js	Thu Nov 24 11:47:07 2011 +0100
+++ b/src/js/serializers/JSONSerializer.js	Thu Nov 24 12:39:46 2011 +0100
@@ -130,9 +130,10 @@
  
   for (i in this._data.annotations) {
     var annotation = this._data.annotations[i];
-    if (annotation.meta["id-ref"] == view_type && annotation.begin < currentTimeMs && annotation.end > currentTimeMs)
+    
+    if (annotation.meta["id-ref"] === view_type && annotation.begin <= currentTimeMs && annotation.end >= currentTimeMs)
       ret_array.push(annotation);
   }
-  
+
   return ret_array;
 };