X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax%2Fajax.js;h=4df372bfc0ea2bce573a60491163ff47f9f08869;hb=f1c91fd023ad0bbd01a386bca4d8503e0e27df73;hp=cf6298d845096520ecf56d7e5941726dd478b457;hpb=47a6a32b27f7af24dec5dc963fa951177a091cd2;p=jquery.git diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index cf6298d..4df372b 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -484,7 +484,7 @@ jQuery.extend({ * (Boolean) async - By default, all requests are send asynchronous (set to true). * If you need synchronous requests, set this option to false. * - * (Function) before - A pre-callback to set custom headers etc., the + * (Function) beforeSend - A pre-callback to set custom headers etc., the * XMLHttpRequest is passed as the only argument. * * @example $.ajax({ @@ -525,7 +525,7 @@ jQuery.extend({ contentType: "application/x-www-form-urlencoded", processData: true, async: true, - before: null + beforeSend: null }, s); // if data available @@ -568,8 +568,8 @@ jQuery.extend({ xml.setRequestHeader("Connection", "close"); // Allow custom headers/mimetypes - if( s.before ) - s.before(xml); + if( s.beforeSend ) + s.beforeSend(xml); // Wait for a response to come back var onreadystatechange = function(isTimeout){