Skip to content

Commit

Permalink
fix(FEC-8621): playerdestory event is not sent on player destory
Browse files Browse the repository at this point in the history
  • Loading branch information
OrenMe committed Nov 14, 2018
1 parent 764849b commit a1b0597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kaltura-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ class KalturaPlayer extends FakeEventTarget {

destroy(): void {
const targetId = this.config.ui.targetId;
this._eventManager.destroy();
this._localPlayer.destroy();
this._uiWrapper.destroy();
this._eventManager.destroy();
const targetContainer = document.getElementById(targetId);
if (targetContainer && targetContainer.parentNode) {
Utils.Dom.removeChild(targetContainer.parentNode, targetContainer);
Expand Down

0 comments on commit a1b0597

Please sign in to comment.