1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Fix missing comma in EpubCFI.generateChapterComponent

This commit is contained in:
Fred Chasen 2017-05-23 16:57:07 -04:00
parent 53a53d8eed
commit d126157999
6 changed files with 7 additions and 7 deletions

View file

@ -2546,7 +2546,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
'use strict'; 'use strict';
var EPUBJS = EPUBJS || {}; var EPUBJS = EPUBJS || {};
EPUBJS.VERSION = "0.2.18"; EPUBJS.VERSION = "0.2.19";
EPUBJS.plugins = EPUBJS.plugins || {}; EPUBJS.plugins = EPUBJS.plugins || {};
@ -5093,7 +5093,7 @@ EPUBJS.EpubCFI = function(cfiStr){
EPUBJS.EpubCFI.prototype.generateChapterComponent = function(_spineNodeIndex, _pos, id) { EPUBJS.EpubCFI.prototype.generateChapterComponent = function(_spineNodeIndex, _pos, id) {
var pos = parseInt(_pos), var pos = parseInt(_pos),
spineNodeIndex = (_spineNodeIndex + 1) * 2 spineNodeIndex = (_spineNodeIndex + 1) * 2,
cfi = '/'+spineNodeIndex+'/'; cfi = '/'+spineNodeIndex+'/';
cfi += (pos + 1) * 2; cfi += (pos + 1) * 2;

2
build/epub.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{ {
"name": "epubjs", "name": "epubjs",
"version": "0.2.18", "version": "0.2.19",
"repository": "https://github.com/futurepress/epub.js", "repository": "https://github.com/futurepress/epub.js",
"description": "Render ePub documents in the browser, across many devices", "description": "Render ePub documents in the browser, across many devices",
"main": "server.js", "main": "server.js",

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
'use strict'; 'use strict';
var EPUBJS = EPUBJS || {}; var EPUBJS = EPUBJS || {};
EPUBJS.VERSION = "0.2.18"; EPUBJS.VERSION = "0.2.19";
EPUBJS.plugins = EPUBJS.plugins || {}; EPUBJS.plugins = EPUBJS.plugins || {};

View file

@ -4,7 +4,7 @@ EPUBJS.EpubCFI = function(cfiStr){
EPUBJS.EpubCFI.prototype.generateChapterComponent = function(_spineNodeIndex, _pos, id) { EPUBJS.EpubCFI.prototype.generateChapterComponent = function(_spineNodeIndex, _pos, id) {
var pos = parseInt(_pos), var pos = parseInt(_pos),
spineNodeIndex = (_spineNodeIndex + 1) * 2 spineNodeIndex = (_spineNodeIndex + 1) * 2,
cfi = '/'+spineNodeIndex+'/'; cfi = '/'+spineNodeIndex+'/';
cfi += (pos + 1) * 2; cfi += (pos + 1) * 2;