This commit is contained in:
Yehuda Katz 2008-04-14 18:16:01 +00:00
parent 1ba2865b08
commit a9fe9a2a5f

View file

@ -292,8 +292,11 @@ jQuery.extend({
// Allow custom headers/mimetypes
if ( s.beforeSend )
s.beforeSend(xml);
var beforeSendSuccess = s.beforeSend(xml, s);
if( beforeSendSuccess === false )
return false;
if ( s.global )
jQuery.event.trigger("ajaxSend", [xml, s]);