Fixed #1781 for warnings created on load by FF javascript.options.strict == true.
This commit is contained in:
parent
4e339ef557
commit
feb9051c0e
5 changed files with 43 additions and 36 deletions
|
@ -246,7 +246,7 @@ jQuery.extend({
|
|||
head.appendChild(script);
|
||||
|
||||
// We handle everything using the script element injection
|
||||
return;
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var requestDone = false;
|
||||
|
@ -361,9 +361,6 @@ jQuery.extend({
|
|||
// firefox 1.5 doesn't fire statechange for sync requests
|
||||
if ( !s.async )
|
||||
onreadystatechange();
|
||||
|
||||
// return XMLHttpRequest to allow aborting the request etc.
|
||||
return xml;
|
||||
|
||||
function success(){
|
||||
// If a local callback was specified, fire it and pass it the data
|
||||
|
@ -388,6 +385,9 @@ jQuery.extend({
|
|||
if ( s.global && ! --jQuery.active )
|
||||
jQuery.event.trigger( "ajaxStop" );
|
||||
}
|
||||
|
||||
// return XMLHttpRequest to allow aborting the request etc.
|
||||
return xml;
|
||||
},
|
||||
|
||||
handleError: function( s, xml, status, e ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue