Skip to content

Commit

Permalink
remove the player's personal stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev committed Aug 17, 2015
1 parent cc2511a commit c020041
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ class Player extends Component {
// prevent dispose from being called twice
this.off('dispose');

this.styleEl_.parentNode.removeChild(this.styleEl_);

// Kill reference to this player
Player.players[this.id_] = null;
if (this.tag && this.tag.player) { this.tag.player = null; }
Expand Down

0 comments on commit c020041

Please sign in to comment.