1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

updated grunt file to compress zip in correct order

This commit is contained in:
Fred Chasen 2013-07-14 13:07:54 -07:00
parent f1eb2d8707
commit ec377d9132
22 changed files with 2347 additions and 100 deletions

View file

@ -5,6 +5,7 @@ EPUBJS.Book = function(bookPath, options){
this.settings = _.defaults(options || {}, {
element : false,
storage: false, //-- true (auto) or false (none) | override: 'ram', 'websqldatabase', 'indexeddb', 'filesystem'
fromStorage : false,
saved : false,
online : true,
contained : false,
@ -12,7 +13,7 @@ EPUBJS.Book = function(bookPath, options){
height: false,
spreads: true,
responsive: true,
version: 1,
version: 1.1,
restore: true
});
@ -385,9 +386,8 @@ EPUBJS.Book.prototype.restore = function(){
reject = false,
fromStore = localStorage.getItem(contentsKey);
if(fromStore != 'undefined'){
if(fromStore != 'undefined' && fromStore != 'null'){
this.contents = JSON.parse(fromStore);
fetch.forEach(function(item){
book[item] = book.contents[item];
if(!book[item]) {