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

white space cleanup

This commit is contained in:
Fred Chasen 2013-10-25 19:59:02 -07:00
parent b9cb79e30d
commit 6fce08bc7d
13 changed files with 1263 additions and 1273 deletions

View file

@ -1837,13 +1837,11 @@ EPUBJS.core.addScript = function(src, callback, target) {
s.async = false;
s.src = src;
s.onload = s.onreadystatechange = function() {
if ( !r && (!this.readyState || this.readyState == 'complete') )
{
if ( !r && (!this.readyState || this.readyState == 'complete') ) {
r = true;
if(callback) callback();
}
},
};
target = target || document.body;
target.appendChild(s);
}
@ -1873,12 +1871,11 @@ EPUBJS.core.addScript = function(src, callback, target) {
s.rel = "stylesheet";
s.href = src;
s.onload = s.onreadystatechange = function() {
if ( !r && (!this.readyState || this.readyState == 'complete') )
{
if ( !r && (!this.readyState || this.readyState == 'complete') ) {
r = true;
if(callback) callback();
}
},
};
target = target || document.body;
target.appendChild(s);
}
@ -2231,7 +2228,7 @@ EPUBJS.Parser.prototype.package = function(packageXml, baseUrl){
'tocPath' : tocPath,
'coverPath': coverPath,
'spineNodeIndex' : spineNodeIndex,
'spineIndexByURL' : spineIndexByURL
'spineIndexByURL': spineIndexByURL
};
}
@ -3125,7 +3122,6 @@ EPUBJS.replace.resources = function(callback, renderer){
//srcs = this.doc.querySelectorAll('[src]');
renderer.replaceWithStored("[src]", "src", EPUBJS.replace.srcs, callback);
}
EPUBJS.replace.svg = function(callback, renderer) {
@ -3208,7 +3204,6 @@ EPUBJS.replace.cssUrls = function(_store, base, text){
EPUBJS.Unarchiver = function(url){
this.libPath = EPUBJS.filePath;
this.zipUrl = url;
this.loadLib()

View file

@ -236,13 +236,11 @@ EPUBJS.core.addScript = function(src, callback, target) {
s.async = false;
s.src = src;
s.onload = s.onreadystatechange = function() {
if ( !r && (!this.readyState || this.readyState == 'complete') )
{
if ( !r && (!this.readyState || this.readyState == 'complete') ) {
r = true;
if(callback) callback();
}
},
};
target = target || document.body;
target.appendChild(s);
}
@ -272,12 +270,11 @@ EPUBJS.core.addScript = function(src, callback, target) {
s.rel = "stylesheet";
s.href = src;
s.onload = s.onreadystatechange = function() {
if ( !r && (!this.readyState || this.readyState == 'complete') )
{
if ( !r && (!this.readyState || this.readyState == 'complete') ) {
r = true;
if(callback) callback();
}
},
};
target = target || document.body;
target.appendChild(s);
}

View file

@ -45,7 +45,7 @@ EPUBJS.Parser.prototype.package = function(packageXml, baseUrl){
'tocPath' : tocPath,
'coverPath': coverPath,
'spineNodeIndex' : spineNodeIndex,
'spineIndexByURL' : spineIndexByURL
'spineIndexByURL': spineIndexByURL
};
}

View file

@ -13,7 +13,6 @@ EPUBJS.replace.resources = function(callback, renderer){
//srcs = this.doc.querySelectorAll('[src]');
renderer.replaceWithStored("[src]", "src", EPUBJS.replace.srcs, callback);
}
EPUBJS.replace.svg = function(callback, renderer) {

View file

@ -1,6 +1,5 @@
EPUBJS.Unarchiver = function(url){
this.libPath = EPUBJS.filePath;
this.zipUrl = url;
this.loadLib()