1
0
Fork 0
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:
Fred Chasen 2017-02-10 15:29:20 -05:00
parent 265df07917
commit db727b00a9
11 changed files with 183 additions and 4 deletions

View file

@ -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;