aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/tabs.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2021-04-09 23:36:00 +0200
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-05-15 00:38:30 +0200
commitdaa6fb55b35065c49c0ffc879c94627bbf85404c (patch)
treec1c90efc224aa82614758262b4e308cc8354ac65 /ui/widgets/tabs.js
parentac8b1e4eee8682e6825730c4823036a90031edad (diff)
downloadjquery-ui-daa6fb55b35065c49c0ffc879c94627bbf85404c.tar.gz
jquery-ui-daa6fb55b35065c49c0ffc879c94627bbf85404c.zip
All: Drop support for jQueries different than the latest for each major
Also, remove the ability to run the test suite in jQuery <1.12.4 & <2.2.4. Closes gh-2249
Diffstat (limited to 'ui/widgets/tabs.js')
-rw-r--r--ui/widgets/tabs.js23
1 files changed, 5 insertions, 18 deletions
diff --git a/ui/widgets/tabs.js b/ui/widgets/tabs.js
index be4fe7e7a..465b48cec 100644
--- a/ui/widgets/tabs.js
+++ b/ui/widgets/tabs.js
@@ -857,32 +857,19 @@ $.widget( "ui.tabs", {
this.xhr = $.ajax( this._ajaxSettings( anchor, event, eventData ) );
- // 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" ) {
+ if ( this.xhr.statusText !== "canceled" ) {
this._addClass( tab, "ui-tabs-loading" );
panel.attr( "aria-busy", "true" );
this.xhr
.done( function( response, status, jqXHR ) {
+ panel.html( response );
+ that._trigger( "load", event, eventData );
- // support: jQuery <1.8
- // https://bugs.jquery.com/ticket/11778
- setTimeout( function() {
- panel.html( response );
- that._trigger( "load", event, eventData );
-
- complete( jqXHR, status );
- }, 1 );
+ complete( jqXHR, status );
} )
.fail( function( jqXHR, status ) {
-
- // support: jQuery <1.8
- // https://bugs.jquery.com/ticket/11778
- setTimeout( function() {
- complete( jqXHR, status );
- }, 1 );
+ complete( jqXHR, status );
} );
}
},