1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

Destroy contents when removing view

This commit is contained in:
Fred Chasen 2018-12-06 08:42:22 -08:00
parent 35d7953b29
commit 4728d09b1d
3 changed files with 2 additions and 2 deletions

View file

@ -780,6 +780,7 @@ class IframeView {
this.displayed = false;
this.removeListeners();
this.contents.destroy();
this.stopExpanding = true;
this.element.removeChild(this.iframe);