Skip to content

Commit

Permalink
Fix missing comma in EpubCFI.generateChapterComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
fchasen committed May 23, 2017
1 parent 53a53d8 commit d126157
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build/epub.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/epub.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion reader/js/epub.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/base.js
@@ -1,7 +1,7 @@
'use strict';

var EPUBJS = EPUBJS || {};
EPUBJS.VERSION = "0.2.18";
EPUBJS.VERSION = "0.2.19";

EPUBJS.plugins = EPUBJS.plugins || {};

Expand Down
2 changes: 1 addition & 1 deletion src/epubcfi.js
Expand Up @@ -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;
Expand Down

0 comments on commit d126157

Please sign in to comment.