From d69551ac8032bae333a2df07e65ebd0531e75a76 Mon Sep 17 00:00:00 2001 From: Aaron Boushley Date: Wed, 23 Nov 2016 10:58:11 -0800 Subject: [PATCH] refactor(html5): remove confusing references to player in a tech (#3790) 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; } }