Ticket #3661: 3661.patch
File 3661.patch, 850 bytes (added by , 14 years ago) |
---|
-
_source/core/scriptloader.js
84 84 85 85 var checkLoaded = function( url, success ) 86 86 { 87 ( success ? completed : failed ).push( url );87 ( success ? completed : failed ).push( url ); 88 88 89 89 if ( --scriptCount <= 0 ) 90 90 doCallback( success ); … … 146 146 /** @ignore */ 147 147 script.$.onload = function() 148 148 { 149 onLoad( url, true ); 149 // Some browsers, such as Safari, may call the onLoad function 150 // immediately. Which will break the loading sequence. (#3661) 151 setTimeout( function() { onLoad( url, true ); }, 0 ); 150 152 }; 151 153 152 154 // FIXME: Opera and Safari will not fire onerror.