Skip to content

Commit

Permalink
Bringing back the change from 80a4178, adapted to handle both the fun…
Browse files Browse the repository at this point in the history
…ction collision and the issue mentioned in #7196.
  • Loading branch information
jeresig committed Oct 15, 2010
1 parent 091c481 commit 497fc98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ajax.js
Expand Up @@ -239,10 +239,6 @@ jQuery.extend({
var customJsonp = window[ jsonp ];

window[ jsonp ] = function( tmp ) {
data = tmp;
jQuery.handleSuccess( s, xhr, status, data );
jQuery.handleComplete( s, xhr, status, data );

if ( jQuery.isFunction( customJsonp ) ) {
customJsonp( tmp );

Expand All @@ -254,6 +250,10 @@ jQuery.extend({
delete window[ jsonp ];
} catch( jsonpError ) {}
}

data = tmp;
jQuery.handleSuccess( s, xhr, status, data );
jQuery.handleComplete( s, xhr, status, data );

if ( head ) {
head.removeChild( script );
Expand Down

0 comments on commit 497fc98

Please sign in to comment.