mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Reverting commit 39addc87a3 after a report of problems. Fixes #7196.
This commit is contained in:
@@ -239,6 +239,10 @@ 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 );
|
||||
|
||||
@@ -254,10 +258,6 @@ jQuery.extend({
|
||||
if ( head ) {
|
||||
head.removeChild( script );
|
||||
}
|
||||
|
||||
data = tmp;
|
||||
jQuery.handleSuccess( s, xhr, status, data );
|
||||
jQuery.handleComplete( s, xhr, status, data );
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user