Added test for #174; Modified failing (IE) tests for find
[jquery.git] / src / ajax / ajax.js
index 5c48968..4ade2e8 100644 (file)
@@ -661,6 +661,16 @@ jQuery.extend({
         *   }
         * });
         *
+        * @test stop();
+        * $.ajax({
+        *   url: "data/with_fries.xml", dataType: "xml", type: "GET", data: "", success: function(resp) {
+        *     ok( $("properties", resp).length == 1, 'properties in responseXML' );
+        *     ok( $("jsconf", resp).length == 1, 'jsconf in responseXML' );
+        *     ok( $("thing", resp).length == 2, 'things in responseXML' );
+        *     start();
+        *   }
+        * });
+        *
         * @name $.ajax
         * @type jQuery
         * @param Hash prop A set of properties to initialize the request with.
@@ -669,6 +679,8 @@ jQuery.extend({
        ajax: function( type, url, data, ret, ifModified ) {
                // If only a single argument was passed in,
                // assume that it is a object of key/value pairs
+               var global = true;
+               var timeout = jQuery.timeout;
                if ( !url ) {
                        ret = type.complete;
                        var success = type.success;