mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Tabs: Removed abort method. Fixes #7150 - Tabs: Remove abort method.
This commit is contained in:
parent
6a00d418bc
commit
828b3c420c
@ -240,22 +240,4 @@ test( "remove", function() {
|
||||
equal( element.tabs( "option", "active" ), false );
|
||||
});
|
||||
|
||||
asyncTest( "abort", function() {
|
||||
expect( 1 );
|
||||
|
||||
var element = $( "#tabs2" ).tabs();
|
||||
element.one( "tabsbeforeload", function( event, ui ) {
|
||||
ui.jqXHR.error(function( jqXHR, status ) {
|
||||
equal( status, "abort", "aborted" );
|
||||
start();
|
||||
});
|
||||
});
|
||||
// prevent IE from caching the request, so that it won't resolve before we call abort
|
||||
element.find( ".ui-tabs-nav li:eq(2) .ui-tabs-anchor" ).attr( "href", function( href ) {
|
||||
return href + "?" + (+ new Date());
|
||||
});
|
||||
element.tabs( "option", "active", 2 );
|
||||
element.tabs( "abort" );
|
||||
});
|
||||
|
||||
}( jQuery ) );
|
||||
|
9
ui/jquery.ui.tabs.js
vendored
9
ui/jquery.ui.tabs.js
vendored
@ -854,15 +854,6 @@ if ( $.uiBackCompat !== false ) {
|
||||
};
|
||||
};
|
||||
|
||||
// abort method
|
||||
$.widget( "ui.tabs", $.ui.tabs, {
|
||||
abort: function() {
|
||||
if ( this.xhr ) {
|
||||
this.xhr.abort();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// add/remove methods and events
|
||||
$.widget( "ui.tabs", $.ui.tabs, {
|
||||
options: {
|
||||
|
Loading…
Reference in New Issue
Block a user