Skip to content

Commit

Permalink
Closes #2688
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Apr 14, 2008
1 parent 1ba2865 commit a9fe9a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ajax.js
Expand Up @@ -292,8 +292,11 @@ jQuery.extend({


// Allow custom headers/mimetypes // Allow custom headers/mimetypes
if ( s.beforeSend ) if ( s.beforeSend )
s.beforeSend(xml); var beforeSendSuccess = s.beforeSend(xml, s);


if( beforeSendSuccess === false )
return false;

if ( s.global ) if ( s.global )
jQuery.event.trigger("ajaxSend", [xml, s]); jQuery.event.trigger("ajaxSend", [xml, s]);


Expand Down

0 comments on commit a9fe9a2

Please sign in to comment.