renovations

This commit is contained in:
Ilya Kantor 2015-02-16 10:39:40 +03:00
parent 9bf1b61cab
commit 0eec1aaccb
25 changed files with 68 additions and 64 deletions

View file

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

View file

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

View file

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