fixed a couple .code() bugs. popcorn-port
authorhamidouk
Wed, 04 Jan 2012 13:06:35 +0100
branchpopcorn-port
changeset 580 47fb5cd44900
parent 579 179b32df9caa
child 581 e13380588930
fixed a couple .code() bugs.
src/js/pop.js
--- a/src/js/pop.js	Wed Jan 04 13:06:14 2012 +0100
+++ b/src/js/pop.js	Wed Jan 04 13:06:35 2012 +0100
@@ -139,14 +139,14 @@
   var i = 0;
   for(i = 0; i < IriSP.PopcornReplacement.__codes.length; i++) {
      var c = IriSP.PopcornReplacement.__codes[i];
-      
+
      if (pos >= c.start && pos < c.end && 
-         pos - 0.1 <= c.start) {       
+         pos - 1 <= c.start) {       
         c.onStart();
      }
  
      if (pos > c.start && pos > c.end && 
-         pos - 0.1 <= c.end) {
+         pos - 1 <= c.end) {
          c.onEnd();
      }
    
@@ -165,7 +165,7 @@
         c.onEnd();
      }         
    }
-
+  
    for(i = 0; i < IriSP.PopcornReplacement.__codes.length; i++) {
      var c = IriSP.PopcornReplacement.__codes[i];