Tweak spacing from last commit.

This commit is contained in:
jeresig 2010-06-14 23:05:01 -04:00
parent d1931a8241
commit c34a62f8ab
4 changed files with 14 additions and 12 deletions

0
speed/benchmarker.css Normal file → Executable file
View file

0
speed/benchmarker.js Normal file → Executable file
View file

0
speed/index.html Normal file → Executable file
View file

View file

@ -238,22 +238,23 @@ jQuery.extend({
// Handle JSONP-style loading
var customJsonp = window[ jsonp ];
window[ jsonp ] = function( tmp ) {
data = tmp;
jQuery.ajax.handleSuccess( s, xhr, status, data );
jQuery.ajax.handleComplete( s, xhr, status, data );
if ( jQuery.isFunction( customJsonp ) ) {
customJsonp( tmp );
}
else {
// Garbage collect
window[ jsonp ] = undefined;
customJsonp( tmp );
try {
delete window[ jsonp ];
} catch( jsonpError ) {}
}
} else {
// Garbage collect
window[ jsonp ] = undefined;
try {
delete window[ jsonp ];
} catch( jsonpError ) {}
}
if ( head ) {
head.removeChild( script );
@ -444,8 +445,9 @@ jQuery.extend({
// Fire the complete handlers
if ( !jsonp ) {
jQuery.ajax.handleComplete( s, xhr, status, data );
}
jQuery.ajax.handleComplete( s, xhr, status, data );
}
if ( isTimeout === "timeout" ) {
xhr.abort();
}