renovations
This commit is contained in:
parent
9bf1b61cab
commit
0eec1aaccb
25 changed files with 68 additions and 64 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
for (var i = 0; i < sources.length; i++) {
|
||||
var img = document.createElement('img');
|
||||
// сначала onload/onerror, затем src - важно для IE<9
|
||||
// сначала onload/onerror, затем src - важно для IE8-
|
||||
img.onload = img.onerror = onLoad;
|
||||
img.src = sources[i];
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
script.onload = onload; // все браузеры, IE с версии 9
|
||||
|
||||
script.onreadystatechange = function () { // IE<9
|
||||
script.onreadystatechange = function () { // IE8-
|
||||
if (this.readyState == 'loaded' || this.readyState == 'complete') {
|
||||
setTimeout(onload, 0);
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
onload(i);
|
||||
};
|
||||
|
||||
script.onreadystatechange = function() { // IE<9
|
||||
script.onreadystatechange = function() { // IE8-
|
||||
if (this.readyState == 'loaded' || this.readyState == 'complete') {
|
||||
setTimeout(this.onload, 0); // возможны повторные вызовы onload
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue