diff options
Diffstat (limited to 'lib/epub.js/src/packaging.js')
-rw-r--r-- | lib/epub.js/src/packaging.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/epub.js/src/packaging.js b/lib/epub.js/src/packaging.js index 396b5d4..e038471 100644 --- a/lib/epub.js/src/packaging.js +++ b/lib/epub.js/src/packaging.js @@ -157,7 +157,7 @@ class Packaging { // var epubcfi = new EpubCFI(); - //-- Add to array to mantain ordering and cross reference with manifest + //-- Add to array to maintain ordering and cross reference with manifest items.forEach(function(item, index){ var idref = item.getAttribute("idref"); // var cfiBase = epubcfi.generateChapterComponent(spineNodeIndex, index, Id); @@ -167,6 +167,7 @@ class Packaging { // var manifestPropArray = manifestProps.length ? manifestProps.split(" ") : []; var itemref = { + "id" : item.getAttribute("id"), "idref" : idref, "linear" : item.getAttribute("linear") || "yes", "properties" : propArray, @@ -212,7 +213,7 @@ class Packaging { */ findNavPath(manifestNode){ // Find item with property "nav" - // Should catch nav irregardless of order + // Should catch nav regardless of order // var node = manifestNode.querySelector("item[properties$='nav'], item[properties^='nav '], item[properties*=' nav ']"); var node = qsp(manifestNode, "item", {"properties":"nav"}); return node ? node.getAttribute("href") : false; |