Fix for #265: Initialize defaults for global and timeout properly when $.ajax is called internally (argument list instead of hash)
This commit is contained in:
parent
cb53fc02b6
commit
bfa8306633
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue