From 26f6f4b0ea17eb7da201a19f3174d2949e40fe21 Mon Sep 17 00:00:00 2001 From: Stephan Hesse Date: Thu, 13 Mar 2014 00:46:00 +0100 Subject: [PATCH] Enough to check for this.tech != null --- src/js/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/player.js b/src/js/player.js index 71a31c068..812e4f497 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -1275,7 +1275,7 @@ vjs.Player.prototype.userActive = function(bool){ // When this gets resolved in ALL browsers it can be removed // https://code.google.com/p/chromium/issues/detail?id=103041 - if(typeof(this.tech) != 'undefined') { + if(this.tech) { this.tech.one('mousemove', function(e){ e.stopPropagation(); e.preventDefault();