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 );
if ( head ) {
head.removeChild( script );
}
+
+ data = tmp;
+ jQuery.ajax.handleSuccess( s, xhr, status, data );
+ jQuery.ajax.handleComplete( s, xhr, status, data );
};
}