fix Ox.App in Firefox 3.6 to show loading screen, fixes #393

This commit is contained in:
j 2012-02-17 10:24:42 +00:00
commit f919d64044
3 changed files with 9 additions and 6 deletions

View file

@ -81,13 +81,14 @@ window.Ox = {
}
function loadScript(script, callback) {
var element = document.createElement('script');
var element = document.createElement('script'),
head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
element.onload = callback;
element.src = path + script + '?' + parseInt(Math.random() * 1000000);
element.type = 'text/javascript';
document.head.appendChild(element);
head.appendChild(element);
}
}
};
};