Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
Merge pull request mediaelement#788 from Jmaharman/master
Browse files Browse the repository at this point in the history
Bug fix for the error "this.pluginApi.pauseMedia is not a function" when using the flash player and removing the dom element.
  • Loading branch information
johndyer committed Mar 11, 2013
2 parents 7eeb0f0 + 9edc5cb commit dec23c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/mep-player.js
Expand Up @@ -1091,6 +1091,9 @@
}
/*else*/ t.$node.insertBefore(t.container)
}

// Remove the player from the mejs.players array so that pauseOtherPlayers doesn't blow up when trying to pause a non existance flash api.
mejs.players.splice( $.inArray( t, mejs.players ), 1);

t.container.remove();
t.globalUnbind();
Expand Down

0 comments on commit dec23c7

Please sign in to comment.