only call previous onerror if it exists

This commit is contained in:
guybedford 2017-02-09 09:11:55 +02:00
parent ed8c4b3615
commit 10032f18fa

View File

@ -147,7 +147,8 @@ if (isBrowser) {
loadingScripts[i].err(msg);
return;
}
onerror.apply(this, arguments);
if (onerror)
onerror.apply(this, arguments);
};
}