fix ie9 Sky.startup

("Enhanced Support Across A Broad Diversity Of Customer Platform")

the deal here:
- IE9 no longer autobinds doScroll as IE <9 does
- but IE9 has DOMContentLoaded so let's use that
This commit is contained in:
Geoff Schmidt
2011-12-20 18:52:02 -08:00
parent 212cdd8b5c
commit e2fb49da71

View File

@@ -23,7 +23,8 @@ if (typeof Sky === "undefined") Sky = {};
}
Sky.startup = function (cb) {
var doScroll = document.documentElement.doScroll;
var doScroll = !document.addEventListener &&
document.documentElement.doScroll;
if (!doScroll || window !== top) {
if (loaded)