mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
Added currentRenderedPage, pagesInCurrentChapter and fixed compressed stylesheet replacement
This commit is contained in:
parent
abd123ef91
commit
d84203711a
13 changed files with 230 additions and 73 deletions
|
@ -54,14 +54,13 @@ EPUBJS.Hooks = (function(){
|
|||
hooks = this.hooks[type];
|
||||
|
||||
count = hooks.length;
|
||||
|
||||
if(count === 0 && callback) {
|
||||
callback();
|
||||
}
|
||||
|
||||
function countdown(){
|
||||
if(count <= 0 && callback) callback();
|
||||
count--;
|
||||
if(count <= 0 && callback) callback();
|
||||
}
|
||||
|
||||
hooks.forEach(function(hook){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue