1
0
Fork 0
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:
Fred Chasen 2013-08-26 22:21:19 -07:00
parent 5af9e6cd4c
commit 81dcc5bc44
6 changed files with 11 additions and 8 deletions

View file

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