1
0
Fork 0
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:
Fred Chasen 2014-05-08 11:33:05 -07:00
parent abd123ef91
commit d84203711a
13 changed files with 230 additions and 73 deletions

View file

@ -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){