From bfa8306633da9c2500e4f3e190c81a9827a8f95a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Fri, 13 Oct 2006 14:02:29 +0000 Subject: [PATCH] Fix for #265: Initialize defaults for global and timeout properly when $.ajax is called internally (argument list instead of hash) --- src/ajax/ajax.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index 5c48968f..1b1e274d 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -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;