mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
add destroy methods
This commit is contained in:
parent
265df07917
commit
db727b00a9
11 changed files with 183 additions and 4 deletions
|
@ -27,6 +27,13 @@ class Resources {
|
|||
|
||||
this.replacementUrls = [];
|
||||
|
||||
this.html = [];
|
||||
this.assets = [];
|
||||
this.css = [];
|
||||
|
||||
this.urls = [];
|
||||
this.cssUrls = [];
|
||||
|
||||
this.split();
|
||||
this.splitUrls();
|
||||
}
|
||||
|
@ -259,6 +266,19 @@ class Resources {
|
|||
}
|
||||
return substitute(content, relUrls, this.replacementUrls);
|
||||
}
|
||||
|
||||
destroy() {
|
||||
this.settings = undefined;
|
||||
this.manifest = undefined;
|
||||
this.resources = undefined;
|
||||
this.replacementUrls = undefined;
|
||||
this.html = undefined;
|
||||
this.assets = undefined;
|
||||
this.css = undefined;
|
||||
|
||||
this.urls = undefined;
|
||||
this.cssUrls = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
export default Resources;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue