mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
fixed load scripts
This commit is contained in:
parent
25058ccf84
commit
2736133ecc
4 changed files with 8 additions and 12 deletions
|
@ -1845,13 +1845,11 @@ EPUBJS.core.addScript = function(src, callback, target) {
|
|||
if(total == curr){
|
||||
if(callback) callback();
|
||||
}else{
|
||||
EPUBJS.core.loadScript(srcArr[curr], cb, target);
|
||||
EPUBJS.core.addScript(srcArr[curr], cb, target);
|
||||
}
|
||||
};
|
||||
|
||||
// srcArr.forEach(function(src){
|
||||
// EPUBJS.core.loadScript(src, cb, target);
|
||||
// });
|
||||
|
||||
EPUBJS.core.addScript(srcArr[curr], cb, target);
|
||||
|
||||
}
|
||||
|
|
2
build/epub.min.js
vendored
2
build/epub.min.js
vendored
File diff suppressed because one or more lines are too long
2
demo/js/epub.min.js
vendored
2
demo/js/epub.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -244,13 +244,11 @@ EPUBJS.core.addScript = function(src, callback, target) {
|
|||
if(total == curr){
|
||||
if(callback) callback();
|
||||
}else{
|
||||
EPUBJS.core.loadScript(srcArr[curr], cb, target);
|
||||
EPUBJS.core.addScript(srcArr[curr], cb, target);
|
||||
}
|
||||
};
|
||||
|
||||
// srcArr.forEach(function(src){
|
||||
// EPUBJS.core.loadScript(src, cb, target);
|
||||
// });
|
||||
|
||||
EPUBJS.core.addScript(srcArr[curr], cb, target);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue