mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
corrected events for endnotes
This commit is contained in:
parent
5af9e6cd4c
commit
81dcc5bc44
6 changed files with 11 additions and 8 deletions
|
@ -66,9 +66,9 @@ EPUBJS.Hooks.register("beforeChapterDisplay").endnotes = function(callback, chap
|
|||
//-- Add hide on page change
|
||||
// chapter.book.listenUntil("book:pageChanged", "book:chapterDestroy", hidePop);
|
||||
// chapter.book.listenUntil("book:pageChanged", "book:chapterDestroy", offPop);
|
||||
chapter.book.on("book:pageChanged", hidePop, this);
|
||||
chapter.book.on("book:pageChanged", offPop, this);
|
||||
// chapter.book.on("book:chapterDestroy", hidePop, this);
|
||||
chapter.book.on("renderer:pageChanged", hidePop, this);
|
||||
chapter.book.on("renderer:pageChanged", offPop, this);
|
||||
// chapter.book.on("renderer:chapterDestroy", hidePop, this);
|
||||
}
|
||||
|
||||
pop = popups[id];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue