1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00
This commit is contained in:
Fred Chasen 2014-09-16 22:56:37 -04:00
parent fa58463233
commit 3598484538
8 changed files with 5 additions and 8 deletions

File diff suppressed because one or more lines are too long

View file

@ -5176,7 +5176,6 @@ EPUBJS.Pagination.prototype.pageFromCfi = function(cfi){
index = EPUBJS.core.locationOf(cfi, this.locations, this.epubcfi.compare);
// Get the page at the location just before the new one, or return the first
pg = index-1 >= 0 ? this.pages[index-1] : this.pages[0];
pg = this.pages[index];
if(pg !== undefined) {
// Add the new page in so that the locations and page array match up
//this.pages.splice(index, 0, pg);