diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-05-16 17:14:50 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-05-16 17:14:50 -0400 |
commit | 90705cdffe58b0448a4520fef922ec7f28afd722 (patch) | |
tree | 4b1a47a0134aab46821c8541aa1fc03085758439 /ui | |
parent | 85639bf0fa39427d8de1dc60131f746045ba4ddc (diff) | |
download | jquery-ui-90705cdffe58b0448a4520fef922ec7f28afd722.tar.gz jquery-ui-90705cdffe58b0448a4520fef922ec7f28afd722.zip |
Tabs: Preparing for when jQuery starts always returning jqXHR objects from $.ajax().
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tabs.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 7198a4180..8a6b2ba2e 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -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 |