browserUtil.js now works in IE6

This commit is contained in:
Mike Hamburg 2010-06-09 09:37:37 -07:00
parent 11066d6f14
commit 6efa96883e

View file

@ -80,7 +80,12 @@ browserUtil.loadScripts = function(scriptNames, cbSuccess, cbError) {
head.appendChild(scriptE);
cb();
} else {
var xhr = new XMLHttpRequest();
var xhr;
if (window.XMLHttpRequest) {
xhr = new XMLHttpRequest;
} else if (window.ActiveXObject) {
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
if (xhr.status == 200) {