Skip to content

Commit

Permalink
refactor(html5): remove confusing references to player in a tech (#3790)
Browse files Browse the repository at this point in the history
These references to player_ are actually not the player due to techs not having a reference to the player.
  • Loading branch information
boushley authored and gkatsev committed Nov 23, 2016
1 parent c5d1152 commit d69551a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/tech/html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,11 @@ class Html5 extends Tech {
if (this.el_.duration === Infinity) {
this.trigger('durationchange');
}
this.off(this.player_, 'timeupdate', checkProgress);
this.off('timeupdate', checkProgress);
}
};

this.on(this.player_, 'timeupdate', checkProgress);
this.on('timeupdate', checkProgress);
return NaN;
}
}
Expand Down

0 comments on commit d69551a

Please sign in to comment.