Ticket #7153: 7153_2.patch
File 7153_2.patch, 1.1 KB (added by , 13 years ago) |
---|
-
_source/core/ckeditor_basic.js
228 228 } 229 229 }; 230 230 231 if ( window.addEventListener ) 231 if ( document.readyState == 'complete' ) 232 onload.call( window ); 233 else if ( window.addEventListener ) 232 234 window.addEventListener( 'load', onload, false ); 233 235 else if ( window.attachEvent ) 234 236 window.attachEvent( 'onload', onload ); -
_source/core/loader.js
218 218 // If the page is fully loaded, we can't use document.write 219 219 // but if the script is run while the body is loading then it's safe to use it 220 220 // 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 ) 222 222 { 223 223 pendingLoad.push( scriptName ); 224 224