Skip to content

Commit

Permalink
Tabs: Preparing for when jQuery starts always returning jqXHR objects…
Browse files Browse the repository at this point in the history
… from $.ajax().
  • Loading branch information
scottgonzalez committed May 16, 2012
1 parent 85639bf commit 90705cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/jquery.ui.tabs.js
Expand Up @@ -513,7 +513,10 @@ $.widget( "ui.tabs", {
}
});

if ( this.xhr ) {
// support: jQuery <1.8
// jQuery <1.8 returns false if the request is canceled in beforeSend,
// but as of 1.8, $.ajax() always returns a jqXHR object.
if ( this.xhr && this.xhr.statusText !== "canceled" ) {
this.lis.eq( index ).addClass( "ui-tabs-loading" );

this.xhr
Expand Down

0 comments on commit 90705cd

Please sign in to comment.