Commit c34a62f8 authored by jeresig's avatar jeresig

Tweak spacing from last commit.

parent d1931a82
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -238,23 +238,24 @@ jQuery.extend({ ...@@ -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 { } else {
// Garbage collect // Garbage collect
window[ jsonp ] = undefined; window[ jsonp ] = undefined;
try { try {
delete window[ jsonp ]; delete window[ jsonp ];
} catch( jsonpError ) {} } catch( jsonpError ) {}
} }
if ( head ) { if ( head ) {
head.removeChild( script ); head.removeChild( script );
} }
...@@ -444,8 +445,9 @@ jQuery.extend({ ...@@ -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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment