From 39d335679c8476b1d7eb9a6f5435b1aa8b412e9e Mon Sep 17 00:00:00 2001 From: Julien Chaumond Date: Sat, 22 Mar 2014 16:51:04 +0100 Subject: [PATCH] Add EPUB version --- epub.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/epub.js b/epub.js index 90c7b7e..af6d971 100644 --- a/epub.js +++ b/epub.js @@ -248,6 +248,8 @@ EPub.prototype.handleRootFile = function () { **/ EPub.prototype.parseRootFile = function (rootfile) { + this.version = rootfile['@'].version || '2.0'; + var i, len, keys, keyparts, key; keys = Object.keys(rootfile); for (i = 0, len = keys.length; i < len; i++) {