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 8576570 commit 80a4178Copy full SHA for 80a4178
src/ajax.js
@@ -239,6 +239,10 @@ 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,10 +258,6 @@ jQuery.extend({
254
258
if ( head ) {
255
259
head.removeChild( script );
256
260
}
257
-
- data = tmp;
- jQuery.handleSuccess( s, xhr, status, data );
- jQuery.handleComplete( s, xhr, status, data );
261
};
262
263
0 commit comments