From 4c6f333096ea08ef1c370486ad6414efecb919f5 Mon Sep 17 00:00:00 2001 From: Trevor Cook Date: Wed, 10 Jul 2013 17:14:07 -0700 Subject: [PATCH] Ensure tech is defined before checking tech.isReady_ fixes #631 --- src/js/player.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/js/player.js b/src/js/player.js index 07f853c723..2ab1dd35cf 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -442,12 +442,7 @@ vjs.Player.prototype.techCall = function(method, arg){ // Get calls can't wait for the tech, and sometimes don't need to. vjs.Player.prototype.techGet = function(method){ - // Make sure there is a tech - // if (!this.tech) { - // return; - // } - - if (this.tech.isReady_) { + if (this.tech && this.tech.isReady_) { // Flash likes to die and reload when you hide or reposition it. // In these cases the object methods go away and we get errors.