1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

IE9 does not need onreadystatechange

This commit is contained in:
Yury Delendik 2013-08-16 09:19:42 -05:00
parent 7e145c1228
commit cb59b31927

View file

@ -489,7 +489,7 @@ var Util = PDFJS.Util = (function UtilClosure() {
var loaded = false;
script.setAttribute('src', src);
if (callback) {
script.onreadystatechange = script.onload = function() {
script.onload = function() {
if (!loaded) {
callback();
}