Skip to content

Commit

Permalink
perf: Remove playerEvent and extra timeupdate handler in SeekBar (v…
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored and gkatsev committed Mar 18, 2019
1 parent 4169ddd commit a2431ce
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/js/control-bar/progress-control/seek-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class SeekBar extends Slider {
this.clearInterval(this.updateInterval);
});

this.on(this.player_, ['timeupdate', 'ended'], this.update);
}

/**
Expand Down Expand Up @@ -428,12 +427,5 @@ if (!IS_IOS && !IS_ANDROID) {
SeekBar.prototype.options_.children.splice(1, 0, 'mouseTimeDisplay');
}

/**
* Call the update event for this Slider when this event happens on the player.
*
* @type {string}
*/
SeekBar.prototype.playerEvent = 'timeupdate';

Component.registerComponent('SeekBar', SeekBar);
export default SeekBar;

0 comments on commit a2431ce

Please sign in to comment.