Skip to content

Commit 80a4178

Browse files
committed
Reverting commit 39addc8 after a report of problems. Fixes #7196.
1 parent 8576570 commit 80a4178

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ajax.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ jQuery.extend({
239239
var customJsonp = window[ jsonp ];
240240

241241
window[ jsonp ] = function( tmp ) {
242+
data = tmp;
243+
jQuery.handleSuccess( s, xhr, status, data );
244+
jQuery.handleComplete( s, xhr, status, data );
245+
242246
if ( jQuery.isFunction( customJsonp ) ) {
243247
customJsonp( tmp );
244248

@@ -254,10 +258,6 @@ jQuery.extend({
254258
if ( head ) {
255259
head.removeChild( script );
256260
}
257-
258-
data = tmp;
259-
jQuery.handleSuccess( s, xhr, status, data );
260-
jQuery.handleComplete( s, xhr, status, data );
261261
};
262262
}
263263

0 commit comments

Comments
 (0)