sliderWidget catches the message sent by the player widget and expands itself accordingly. popcorn-port
authorhamidouk
Fri, 25 Nov 2011 11:10:47 +0100
branchpopcorn-port
changeset 332 3c40f2e862d2
parent 331 ef3447aa6920
child 333 a597f3c04b3f
sliderWidget catches the message sent by the player widget and expands itself accordingly.
src/js/widgets/sliderWidget.js
--- a/src/js/widgets/sliderWidget.js	Fri Nov 25 11:10:19 2011 +0100
+++ b/src/js/widgets/sliderWidget.js	Fri Nov 25 11:10:47 2011 +0100
@@ -29,7 +29,13 @@
   this.sliderForeground.click(function(event) { self.foregroundClickHandler.call(self, event); });
 
   this.selector.hover(IriSP.wrap(this, this.mouseOverHandler), IriSP.wrap(this, this.mouseOutHandler));
+
+  // update the positions
   this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.sliderUpdater));
+
+  // special messages :
+  this._Popcorn.listen("IriSP.PlayerWidget.MouseOver", IriSP.wrap(this, this.mouseOverHandler));
+  this._Popcorn.listen("IriSP.PlayerWidget.MouseOut", IriSP.wrap(this, this.mouseOutHandler));
 };
 
 /* update the slider and the position marker as time passes */