From: Trevor Parscal Date: Fri, 19 Nov 2010 23:01:53 +0000 (+0000) Subject: Fixed order of statements - function was referred to before it was defined. X-Git-Tag: 1.31.0-rc.0~33806 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=d996feb954915446e31fcfbbfe663887daa1da47;p=lhc%2Fweb%2Fwiklou.git Fixed order of statements - function was referred to before it was defined. --- diff --git a/skins/common/IEFixes.js b/skins/common/IEFixes.js index 469daa45af..0d3fd26e41 100644 --- a/skins/common/IEFixes.js +++ b/skins/common/IEFixes.js @@ -4,10 +4,6 @@ window.isMSIE55 = ( window.showModalDialog && window.clipboardData && window.cre window.doneIETransform = undefined; window.doneIEAlphaFix = undefined; -if ( document.attachEvent ) { - document.attachEvent( 'onreadystatechange', hookit ); -} - window.hookit = function() { if ( !doneIETransform && document.getElementById && document.getElementById( 'bodyContent' ) ) { doneIETransform = true; @@ -16,6 +12,10 @@ window.hookit = function() { } } +if ( document.attachEvent ) { + document.attachEvent( 'onreadystatechange', window.hookit ); +} + // png alpha transparency fixes window.fixalpha = function( logoId ) { // bg