We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 091c481 commit 497fc98Copy full SHA for 497fc98
src/ajax.js
@@ -239,10 +239,6 @@ jQuery.extend({
239
var customJsonp = window[ jsonp ];
240
241
window[ jsonp ] = function( tmp ) {
242
- data = tmp;
243
- jQuery.handleSuccess( s, xhr, status, data );
244
- jQuery.handleComplete( s, xhr, status, data );
245
-
246
if ( jQuery.isFunction( customJsonp ) ) {
247
customJsonp( tmp );
248
@@ -254,6 +250,10 @@ jQuery.extend({
254
250
delete window[ jsonp ];
255
251
} catch( jsonpError ) {}
256
252
}
253
+
+ data = tmp;
+ jQuery.handleSuccess( s, xhr, status, data );
+ jQuery.handleComplete( s, xhr, status, data );
257
258
if ( head ) {
259
head.removeChild( script );
0 commit comments