From 861d44db1b6fa2442971371985adc18d241657ea Mon Sep 17 00:00:00 2001 From: Aaron Boushley Date: Thu, 17 Nov 2016 12:38:30 -0800 Subject: [PATCH] refactor(html5) remove confusing references to player in a tech These references to player_ are actually not the player due to techs not having a reference to the player. --- src/js/tech/html5.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/tech/html5.js b/src/js/tech/html5.js index 4a8ea8e00d..d6caf07514 100644 --- a/src/js/tech/html5.js +++ b/src/js/tech/html5.js @@ -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; } }