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