Skip to content

Commit

Permalink
Close GH-632: Ensure tech is defined before checking tech.isReady_ fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Cook authored and heff committed Aug 26, 2013
1 parent acb4a43 commit 07351ad
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,12 +456,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.
Expand Down

0 comments on commit 07351ad

Please sign in to comment.