Skip to content
Permalink
Browse files
Tweak spacing from last commit.
  • Loading branch information
jeresig committed Jun 15, 2010
1 parent d1931a8 commit c34a62f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
0 speed/benchmarker.css 100644 → 100755
Empty file.
0 speed/benchmarker.js 100644 → 100755
Empty file.
0 speed/index.html 100644 → 100755
Empty file.
@@ -238,23 +238,24 @@ 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;

try {
delete window[ jsonp ];
} catch( jsonpError ) {}
}
customJsonp( tmp );

} 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();
}

0 comments on commit c34a62f

Please sign in to comment.