Fix for #265: Initialize defaults for global and timeout properly when $.ajax is...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 13 Oct 2006 14:02:29 +0000 (14:02 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 13 Oct 2006 14:02:29 +0000 (14:02 +0000)
src/ajax/ajax.js

index 5c48968..1b1e274 100644 (file)
@@ -669,6 +669,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;