mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
fixed endnotes bounding rects
This commit is contained in:
parent
2d81246827
commit
b2c7b76b27
10 changed files with 85 additions and 41 deletions
|
@ -165,7 +165,7 @@ FP.core.dataURLToBlob = function(dataURL) {
|
|||
}
|
||||
|
||||
//-- Load scripts async: http://stackoverflow.com/questions/7718935/load-scripts-asynchronously
|
||||
FP.core.loadScript = function(src, callback, target) {
|
||||
FP.core.addScript = function(src, callback, target) {
|
||||
var s, r;
|
||||
r = false;
|
||||
s = document.createElement('script');
|
||||
|
@ -184,7 +184,7 @@ FP.core.loadScript = function(src, callback, target) {
|
|||
target.appendChild(s);
|
||||
}
|
||||
|
||||
FP.core.loadScripts = function(srcArr, callback, target) {
|
||||
FP.core.addScripts = function(srcArr, callback, target) {
|
||||
var total = srcArr.length,
|
||||
curr = 0,
|
||||
cb = function(){
|
||||
|
@ -199,7 +199,7 @@ FP.core.loadScript = function(src, callback, target) {
|
|||
// srcArr.forEach(function(src){
|
||||
// FP.core.loadScript(src, cb, target);
|
||||
// });
|
||||
FP.core.loadScript(srcArr[curr], cb, target);
|
||||
FP.core.addScript(srcArr[curr], cb, target);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue