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

remove any uses of offsetLeft, cleaned up storage

This commit is contained in:
Fred Chasen 2013-03-27 15:56:11 -07:00
parent 7f41f00775
commit 5d7a15eabd
14 changed files with 102 additions and 72 deletions

View file

@ -3,7 +3,8 @@ FP.store = FP.store || {};
FP.store.websql = function() {
var _blobs = {},
_queue = new FP.Queue(loader, 6),
_db;
_db,
_URL = window.URL;
const DBNAME = "fpjs_db";
const DBVERSION = "1";
@ -176,7 +177,7 @@ FP.store.websql = function() {
}
blob = FP.core.dataURLToBlob(file); //go from data url to blob
url = this._URL.createObjectURL(blob);
url = _URL.createObjectURL(blob);
//-- need to revokeObjectURL previous urls, but only when cleaning cache
// this.createdURLs.forEach(function(url){