mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Fix missing comma in EpubCFI.generateChapterComponent
This commit is contained in:
parent
53a53d8eed
commit
d126157999
6 changed files with 7 additions and 7 deletions
|
@ -2546,7 +2546,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|||
'use strict';
|
||||
|
||||
var EPUBJS = EPUBJS || {};
|
||||
EPUBJS.VERSION = "0.2.18";
|
||||
EPUBJS.VERSION = "0.2.19";
|
||||
|
||||
EPUBJS.plugins = EPUBJS.plugins || {};
|
||||
|
||||
|
@ -5093,7 +5093,7 @@ EPUBJS.EpubCFI = function(cfiStr){
|
|||
|
||||
EPUBJS.EpubCFI.prototype.generateChapterComponent = function(_spineNodeIndex, _pos, id) {
|
||||
var pos = parseInt(_pos),
|
||||
spineNodeIndex = (_spineNodeIndex + 1) * 2
|
||||
spineNodeIndex = (_spineNodeIndex + 1) * 2,
|
||||
cfi = '/'+spineNodeIndex+'/';
|
||||
|
||||
cfi += (pos + 1) * 2;
|
||||
|
|
2
build/epub.min.js
vendored
2
build/epub.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "epubjs",
|
||||
"version": "0.2.18",
|
||||
"version": "0.2.19",
|
||||
"repository": "https://github.com/futurepress/epub.js",
|
||||
"description": "Render ePub documents in the browser, across many devices",
|
||||
"main": "server.js",
|
||||
|
|
2
reader/js/epub.min.js
vendored
2
reader/js/epub.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
var EPUBJS = EPUBJS || {};
|
||||
EPUBJS.VERSION = "0.2.18";
|
||||
EPUBJS.VERSION = "0.2.19";
|
||||
|
||||
EPUBJS.plugins = EPUBJS.plugins || {};
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ EPUBJS.EpubCFI = function(cfiStr){
|
|||
|
||||
EPUBJS.EpubCFI.prototype.generateChapterComponent = function(_spineNodeIndex, _pos, id) {
|
||||
var pos = parseInt(_pos),
|
||||
spineNodeIndex = (_spineNodeIndex + 1) * 2
|
||||
spineNodeIndex = (_spineNodeIndex + 1) * 2,
|
||||
cfi = '/'+spineNodeIndex+'/';
|
||||
|
||||
cfi += (pos + 1) * 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue