Reverting commit 39addc87a3
after a report of problems. Fixes #7196.
This commit is contained in:
parent
8576570e6e
commit
80a4178af9
1 changed files with 4 additions and 4 deletions
|
@ -239,6 +239,10 @@ jQuery.extend({
|
||||||
var customJsonp = window[ jsonp ];
|
var customJsonp = window[ jsonp ];
|
||||||
|
|
||||||
window[ jsonp ] = function( tmp ) {
|
window[ jsonp ] = function( tmp ) {
|
||||||
|
data = tmp;
|
||||||
|
jQuery.handleSuccess( s, xhr, status, data );
|
||||||
|
jQuery.handleComplete( s, xhr, status, data );
|
||||||
|
|
||||||
if ( jQuery.isFunction( customJsonp ) ) {
|
if ( jQuery.isFunction( customJsonp ) ) {
|
||||||
customJsonp( tmp );
|
customJsonp( tmp );
|
||||||
|
|
||||||
|
@ -254,10 +258,6 @@ jQuery.extend({
|
||||||
if ( head ) {
|
if ( head ) {
|
||||||
head.removeChild( script );
|
head.removeChild( script );
|
||||||
}
|
}
|
||||||
|
|
||||||
data = tmp;
|
|
||||||
jQuery.handleSuccess( s, xhr, status, data );
|
|
||||||
jQuery.handleComplete( s, xhr, status, data );
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue