Skip to content
Permalink
Browse files

Tweak spacing from last commit.

  • Loading branch information
jeresig committed Jun 15, 2010
1 parent d1931a8 commit c34a62f8abbd9598e7a6647754c449ce92418b3a
Showing with 15 additions and 13 deletions.
  1. 0 speed/benchmarker.css
  2. 0 speed/benchmarker.js
  3. 0 speed/index.html
  4. +15 −13 src/ajax.js
0 speed/benchmarker.css 100644 → 100755
No changes.
0 speed/benchmarker.js 100644 → 100755
No changes.
0 speed/index.html 100644 → 100755
No changes.
@@ -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.
You can’t perform that action at this time.