Skip to content

Commit

Permalink
Merge pull request mediaelement#799 from odnamrataizem/splicefix
Browse files Browse the repository at this point in the history
"splice is not a function" fix on MEP.remove() [follow-up from mediaelement#779 and mediaelement#788]
  • Loading branch information
johndyer committed Apr 10, 2013
2 parents 316ac12 + e49afe8 commit 98c296e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/js/mep-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -1095,13 +1095,12 @@
/*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);
// Remove the player from the mejs.players object so that pauseOtherPlayers doesn't blow up when trying to pause a non existance flash api.
delete mejs.players[t.id];

t.container.remove();
t.globalUnbind();
delete t.node.player;
delete mejs.players[t.id];
}
};

Expand Down

0 comments on commit 98c296e

Please sign in to comment.