1
0
Fork 0
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:
Fred Chasen 2013-10-05 17:57:28 -07:00
parent 25058ccf84
commit 2736133ecc
4 changed files with 8 additions and 12 deletions

View file

@ -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

File diff suppressed because one or more lines are too long

2
demo/js/epub.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -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);
}