Check if attachEvent is defined
This commit is contained in:
parent
3bec8b0311
commit
0c57a00fdb
@ -75,6 +75,6 @@ var runScripts = function () {
|
||||
|
||||
if (global.addEventListener) {
|
||||
global.addEventListener("DOMContentLoaded", runScripts, false);
|
||||
} else {
|
||||
} else if (global.attachEvent) {
|
||||
global.attachEvent("onload", runScripts);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user