Skip to content
Browse files

Fixed multiple event listeners added for controls fading on play even…

…t. fixes #173
  • Loading branch information...
1 parent 5fc725c commit a787b5ca3a3551f00eff8620e91a14ca3b6f6bfb Steve Heffernan committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/controls.js
View
2 src/controls.js
@@ -30,7 +30,7 @@ _V_.ControlBar = _V_.Component.extend({
init: function(player, options){
this._super(player, options);
- player.addEvent("play", this.proxy(function(){
+ player.one("play", this.proxy(function(){
this.fadeIn();
this.player.addEvent("mouseover", this.proxy(this.fadeIn));
this.player.addEvent("mouseout", this.proxy(this.fadeOut));

0 comments on commit a787b5c

Please sign in to comment.
Something went wrong with that request. Please try again.