Skip to content

Commit

Permalink
Remove the watch for native timeupdates
Browse files Browse the repository at this point in the history
  • Loading branch information
eXon committed May 18, 2015
1 parent 152717e commit 1766e2c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/js/tech/tech.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,21 +147,6 @@ class Tech extends Component {

this.on('play', this.trackCurrentTime);
this.on('pause', this.stopTrackingCurrentTime);
// timeupdate is also called by .currentTime whenever current time is set

// Watch for native timeupdate event only
var onTimeUpdate = function(e){
if (e.manuallyTriggered) return;

this.off('timeupdate', onTimeUpdate);

// Update known progress support for this playback technology
this.featuresTimeupdateEvents = true;
// Turn off manual progress tracking
this.manualTimeUpdatesOff();
};

this.on('timeupdate', onTimeUpdate);
}

manualTimeUpdatesOff() {
Expand Down

0 comments on commit 1766e2c

Please sign in to comment.