Commit bfa83066 authored by Jörn Zaefferer's avatar Jörn Zaefferer

Fix for #265: Initialize defaults for global and timeout properly when $.ajax...

Fix for #265: Initialize defaults for global and timeout properly when $.ajax is called internally (argument list instead of hash)
parent cb53fc02
...@@ -669,6 +669,8 @@ jQuery.extend({ ...@@ -669,6 +669,8 @@ jQuery.extend({
ajax: function( type, url, data, ret, ifModified ) { ajax: function( type, url, data, ret, ifModified ) {
// If only a single argument was passed in, // If only a single argument was passed in,
// assume that it is a object of key/value pairs // assume that it is a object of key/value pairs
var global = true;
var timeout = jQuery.timeout;
if ( !url ) { if ( !url ) {
ret = type.complete; ret = type.complete;
var success = type.success; var success = type.success;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment