Make IE sane

This commit is contained in:
Mike Primm 2011-08-01 23:21:36 -05:00
parent 37c9d4b9cd
commit 0bbcf6510e
8 changed files with 24 additions and 21 deletions

View file

@ -179,7 +179,8 @@ function loadjs(url, completed) {
// Hack for IE, don't know whether this still applies to IE9.
script.onreadystatechange = function() {
script.onload();
if (script.readyState == 'loaded' || script.readyState == 'complete')
script.onload();
};
(document.head || document.getElementsByTagName('head')[0]).appendChild(script);
}