1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00
This commit is contained in:
Fred Chasen 2013-12-03 13:02:15 -08:00
parent b9a7ffb7e6
commit d06e5b219e
7 changed files with 13 additions and 8 deletions

View file

@ -1333,6 +1333,11 @@ EPUBJS.Book.prototype.prevChapter = function() {
return this.displayChapter(this.spinePos, true); return this.displayChapter(this.spinePos, true);
}; };
EPUBJS.Book.prototype.getCurrentLocationCfi = function() {
if(!this.isRendered) return false;
return this.render.currentLocationCfi;
};
EPUBJS.Book.prototype.gotoCfi = function(cfi){ EPUBJS.Book.prototype.gotoCfi = function(cfi){
if(!this.isRendered) return this._enqueue("gotoCfi", arguments); if(!this.isRendered) return this._enqueue("gotoCfi", arguments);
return this.displayChapter(cfi); return this.displayChapter(cfi);

4
build/epub.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
demo/js/epub.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long