Tweak spacing from last commit.
This commit is contained in:
parent
d1931a8241
commit
c34a62f8ab
0
speed/benchmarker.css
Normal file → Executable file
0
speed/benchmarker.css
Normal file → Executable file
0
speed/benchmarker.js
Normal file → Executable file
0
speed/benchmarker.js
Normal file → Executable file
0
speed/index.html
Normal file → Executable file
0
speed/index.html
Normal file → Executable file
26
src/ajax.js
26
src/ajax.js
|
@ -238,23 +238,24 @@ jQuery.extend({
|
||||||
|
|
||||||
// Handle JSONP-style loading
|
// Handle JSONP-style loading
|
||||||
var customJsonp = window[ jsonp ];
|
var customJsonp = window[ jsonp ];
|
||||||
|
|
||||||
window[ jsonp ] = function( tmp ) {
|
window[ jsonp ] = function( tmp ) {
|
||||||
data = tmp;
|
data = tmp;
|
||||||
jQuery.ajax.handleSuccess( s, xhr, status, data );
|
jQuery.ajax.handleSuccess( s, xhr, status, data );
|
||||||
jQuery.ajax.handleComplete( s, xhr, status, data );
|
jQuery.ajax.handleComplete( s, xhr, status, data );
|
||||||
|
|
||||||
if ( jQuery.isFunction( customJsonp ) ) {
|
if ( jQuery.isFunction( customJsonp ) ) {
|
||||||
customJsonp( tmp );
|
customJsonp( tmp );
|
||||||
}
|
|
||||||
else {
|
|
||||||
// Garbage collect
|
|
||||||
window[ jsonp ] = undefined;
|
|
||||||
|
|
||||||
try {
|
} else {
|
||||||
delete window[ jsonp ];
|
// Garbage collect
|
||||||
} catch( jsonpError ) {}
|
window[ jsonp ] = undefined;
|
||||||
}
|
|
||||||
|
try {
|
||||||
|
delete window[ jsonp ];
|
||||||
|
} catch( jsonpError ) {}
|
||||||
|
}
|
||||||
|
|
||||||
if ( head ) {
|
if ( head ) {
|
||||||
head.removeChild( script );
|
head.removeChild( script );
|
||||||
}
|
}
|
||||||
|
@ -444,8 +445,9 @@ jQuery.extend({
|
||||||
|
|
||||||
// Fire the complete handlers
|
// Fire the complete handlers
|
||||||
if ( !jsonp ) {
|
if ( !jsonp ) {
|
||||||
jQuery.ajax.handleComplete( s, xhr, status, data );
|
jQuery.ajax.handleComplete( s, xhr, status, data );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isTimeout === "timeout" ) {
|
if ( isTimeout === "timeout" ) {
|
||||||
xhr.abort();
|
xhr.abort();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue