r77042 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77041‎ | r77042 | r77043 >
Date:23:01, 19 November 2010
Author:tparscal
Status:ok
Tags:
Comment:
Fixed order of statements - function was referred to before it was defined.
Modified paths:
  • /trunk/phase3/skins/common/IEFixes.js (modified) (history)

Diff [purge]

Index: trunk/phase3/skins/common/IEFixes.js
@@ -4,10 +4,6 @@
55 window.doneIETransform = undefined;
66 window.doneIEAlphaFix = undefined;
77
8 -if ( document.attachEvent ) {
9 - document.attachEvent( 'onreadystatechange', hookit );
10 -}
11 -
128 window.hookit = function() {
139 if ( !doneIETransform && document.getElementById && document.getElementById( 'bodyContent' ) ) {
1410 doneIETransform = true;
@@ -16,6 +12,10 @@
1713 }
1814 }
1915
 16+if ( document.attachEvent ) {
 17+ document.attachEvent( 'onreadystatechange', window.hookit );
 18+}
 19+
2020 // png alpha transparency fixes
2121 window.fixalpha = function( logoId ) {
2222 // bg

Status & tagging log