mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Added type declarations
This commit is contained in:
parent
0da286b0a2
commit
6bfcd1e4eb
50 changed files with 1837 additions and 54 deletions
|
@ -511,7 +511,11 @@ class Contents {
|
|||
this.observer.observe(this.document, config);
|
||||
}
|
||||
|
||||
imageLoadListeners(target) {
|
||||
/**
|
||||
* Test if images are loaded or add listener for when they load
|
||||
* @private
|
||||
*/
|
||||
imageLoadListeners() {
|
||||
var images = this.document.querySelectorAll("img");
|
||||
var img;
|
||||
for (var i = 0; i < images.length; i++) {
|
||||
|
@ -528,7 +532,7 @@ class Contents {
|
|||
* Listen for font load and check for resize when loaded
|
||||
* @private
|
||||
*/
|
||||
fontLoadListeners(target) {
|
||||
fontLoadListeners() {
|
||||
if (!this.document || !this.document.fonts) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue