check if the seeked signal handler receives the seek destination argument. popcorn-port
authorhamidouk
Tue, 31 Jan 2012 15:33:45 +0100
branchpopcorn-port
changeset 751 5cea0b550154
parent 750 a1a3d09de1f4
child 752 ebc72cbc35f4
check if the seeked signal handler receives the seek destination argument. it it's the case, assume we're going there.
src/js/modules/mediafragment.js
--- a/src/js/modules/mediafragment.js	Tue Jan 31 15:32:35 2012 +0100
+++ b/src/js/modules/mediafragment.js	Tue Jan 31 15:33:45 2012 +0100
@@ -52,9 +52,8 @@
   if ( !history.pushState ) {
     return false;
   }
-  
-  
-  if (IriSP.null_or_undefined(time)) {
+    
+  if (IriSP.null_or_undefined(time) || typeof(time) != "number") {
     var ntime = this._Popcorn.currentTime().toFixed(2)
   } else {
     var ntime = time.toFixed(2);