src/widgets/Controller.js
branchplayers-as-widgets
changeset 960 9a278b9e3b05
parent 957 4da0a5740b6c
child 970 b1c3bf6eca78
--- a/src/widgets/Controller.js	Tue Sep 18 15:39:28 2012 +0900
+++ b/src/widgets/Controller.js	Wed Sep 19 14:10:38 2012 +0900
@@ -156,7 +156,7 @@
             _this.player.trigger("Player.MouseOut");
         });
     
-    this.timeDisplayUpdater(0);
+    this.timeDisplayUpdater(new IriSP.Model.Time(0));
     /* some players - including jwplayer - save the state of the mute button between sessions */
    //TODO: MOVE TO THE PLAYER/
     window.setTimeout(this.functionWrapper("volumeUpdater"), 1000);
@@ -168,7 +168,6 @@
   
     // we get it at each call because it may change.
     var _totalTime = this.media.duration;
-        
     this.$.find(".Ldt-Ctrl-Time-Elapsed").html(_time.toString());
     this.$.find(".Ldt-Ctrl-Time-Total").html(_totalTime.toString());
 };