1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Merge pull request #542 from Sunil-bb/fix-for-528-534

Fix for 534 and 528
This commit is contained in:
Fred Chasen 2017-02-12 14:40:14 -05:00 committed by GitHub
commit 5269cfc4f8
2 changed files with 1 additions and 16 deletions

View file

@ -288,12 +288,8 @@ class DefaultViewManager {
} else {
next = this.views.last().section.next();
}
} else {
next = this.views.last().section.next();
}
if(next) {

View file

@ -242,18 +242,7 @@ class Rendition {
return displayed;
}
// Trim the target fragment
// removing the chapter
if(!isCfiString && typeof target === "string" &&
target.indexOf("#") > -1) {
moveTo = target.substring(target.indexOf("#")+1);
}
if (isCfiString) {
moveTo = target;
}
return this.manager.display(section, moveTo)
return this.manager.display(section, target)
.then(function(){
// this.emit("displayed", section);
}.bind(this));