Skip to content
Permalink
Browse files
Fix for #265: Initialize defaults for global and timeout properly whe…
…n $.ajax is called internally (argument list instead of hash)
  • Loading branch information
jzaefferer committed Oct 13, 2006
1 parent cb53fc0 commit bfa8306
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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;

0 comments on commit bfa8306

Please sign in to comment.