fixed bug popcorn-port
authorhamidouk
Thu, 26 Jan 2012 17:19:53 +0100
branchpopcorn-port
changeset 723 bbf9914a5f99
parent 722 ed12570ebd64
child 724 94d5d81d3161
fixed bug
src/js/pop.js
--- a/src/js/pop.js	Thu Jan 26 16:22:06 2012 +0100
+++ b/src/js/pop.js	Thu Jan 26 17:19:53 2012 +0100
@@ -101,9 +101,7 @@
       return this.playerFns.getPosition();            
   } else {
      var currentTime = +time;
-     this.playerFns.seek( currentTime );
-     this.__delay_seek_signal = true;    /* FIXME : useless ? */
-     this.trigger("seeked");           
+     this.playerFns.seek(currentTime);              
      return currentTime;
   }
 };
@@ -179,7 +177,7 @@
 
 IriSP.PopcornReplacement.player.prototype.__seekHandler = function(event) {
   var i = 0;
-
+  
   for(i = 0; i < this.__codes.length; i++) {
      var c = this.__codes[i];
     
@@ -199,8 +197,8 @@
      }
      
    }
-
-  this.trigger("timeupdate");
+  
+  this.trigger("seeked");  
 };
 
 IriSP.PopcornReplacement.player.prototype.__playHandler = function(event) {