Ticket #7153: 7153_2.patch

File 7153_2.patch, 1.1 KB (added by Garry Yao, 13 years ago)
  • _source/core/ckeditor_basic.js

     
    228228                                }
    229229                        };
    230230
    231                         if ( window.addEventListener )
     231                        if ( document.readyState == 'complete' )
     232                                onload.call( window );
     233                        else if ( window.addEventListener )
    232234                                window.addEventListener( 'load', onload, false );
    233235                        else if ( window.attachEvent )
    234236                                window.attachEvent( 'onload', onload );
  • _source/core/loader.js

     
    218218                                // If the page is fully loaded, we can't use document.write
    219219                                // but if the script is run while the body is loading then it's safe to use it
    220220                                // Unfortunately, Firefox <3.6 doesn't support document.readyState, so it won't get this improvement
    221                                 if ( document.body && (!document.readyState || document.readyState == 'complete') )
     221                                if ( document.body )
    222222                                {
    223223                                        pendingLoad.push( scriptName );
    224224
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy