Bringing back the change from 80a4178af9b12e6617bfcec818c538dfe08d3791, adapted to...
[jquery.git] / src / ajax.js
index 5c8ec62..a40e223 100644 (file)
@@ -250,14 +250,14 @@ jQuery.extend({
                                                delete window[ jsonp ];
                                        } catch( jsonpError ) {}
                                }
+
+                               data = tmp;
+                               jQuery.handleSuccess( s, xhr, status, data );
+                               jQuery.handleComplete( s, xhr, status, data );
                                
                                if ( head ) {
                                        head.removeChild( script );
                                }
-                               
-                               data = tmp;
-                               jQuery.handleSuccess( s, xhr, status, data );
-                               jQuery.handleComplete( s, xhr, status, data );
                        };
                }