Check if attachEvent is defined

This commit is contained in:
Joshua Peek 2014-11-16 01:41:56 -08:00
parent 3bec8b0311
commit 0c57a00fdb

View File

@ -75,6 +75,6 @@ var runScripts = function () {
if (global.addEventListener) {
global.addEventListener("DOMContentLoaded", runScripts, false);
} else {
} else if (global.attachEvent) {
global.attachEvent("onload", runScripts);
}