Skip to content

Commit 828b3c4

Browse files
committed
Tabs: Removed abort method. Fixes #7150 - Tabs: Remove abort method.
1 parent 6a00d41 commit 828b3c4

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

tests/unit/tabs/tabs_deprecated.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -240,22 +240,4 @@ test( "remove", function() {
240240
equal( element.tabs( "option", "active" ), false );
241241
});
242242

243-
asyncTest( "abort", function() {
244-
expect( 1 );
245-
246-
var element = $( "#tabs2" ).tabs();
247-
element.one( "tabsbeforeload", function( event, ui ) {
248-
ui.jqXHR.error(function( jqXHR, status ) {
249-
equal( status, "abort", "aborted" );
250-
start();
251-
});
252-
});
253-
// prevent IE from caching the request, so that it won't resolve before we call abort
254-
element.find( ".ui-tabs-nav li:eq(2) .ui-tabs-anchor" ).attr( "href", function( href ) {
255-
return href + "?" + (+ new Date());
256-
});
257-
element.tabs( "option", "active", 2 );
258-
element.tabs( "abort" );
259-
});
260-
261243
}( jQuery ) );

ui/jquery.ui.tabs.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -854,15 +854,6 @@ if ( $.uiBackCompat !== false ) {
854854
};
855855
};
856856

857-
// abort method
858-
$.widget( "ui.tabs", $.ui.tabs, {
859-
abort: function() {
860-
if ( this.xhr ) {
861-
this.xhr.abort();
862-
}
863-
}
864-
});
865-
866857
// add/remove methods and events
867858
$.widget( "ui.tabs", $.ui.tabs, {
868859
options: {

0 commit comments

Comments
 (0)