Skip to content

Commit

Permalink
fix(ads): Removed event listener once Ad has been destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa8626 committed Nov 28, 2018
1 parent cdef255 commit 89c982a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/media/ads.ts
Expand Up @@ -413,6 +413,7 @@ class Ads {
if (IS_IOS || IS_ANDROID) {
this.element.removeEventListener('loadedmetadata', this._contentLoadedAction.bind(this));
}
this.element.removeEventListener('loadedmetadata', this.resizeAds.bind(this));
this.element.removeEventListener('ended', this._contentEndedListener.bind(this));
window.removeEventListener('resize', this.resizeAds.bind(this));
this.adsContainer.remove();
Expand Down

0 comments on commit 89c982a

Please sign in to comment.