Skip to content

Commit acdd191

Browse files
committed
Tabs: Removed url method. Fixes #7148 - Tabs: Remove url method.
1 parent 52a184e commit acdd191

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

tests/unit/tabs/tabs_deprecated.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -510,21 +510,6 @@ test( "length", function() {
510510
equal( $( "#tabs2" ).tabs().tabs( "length" ), 5, "ajax tabs with missing panels" );
511511
});
512512

513-
test( "url", function() {
514-
expect( 2 );
515-
516-
var element = $( "#tabs2" ).tabs(),
517-
anchor = element.find( ".ui-tabs-anchor" ).eq( 3 );
518-
519-
element.tabs( "url", 3, "data/test2.html" );
520-
equal( anchor.attr( "href" ), "data/test2.html", "href was updated" );
521-
element.one( "tabsbeforeload", function( event, ui ) {
522-
equal( ui.ajaxSettings.url, "data/test2.html", "ajaxSettings.url" );
523-
event.preventDefault();
524-
});
525-
element.tabs( "option", "active", 3 );
526-
});
527-
528513
asyncTest( "abort", function() {
529514
expect( 1 );
530515

ui/jquery.ui.tabs.js

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

857-
// url method
858-
$.widget( "ui.tabs", $.ui.tabs, {
859-
url: function( index, url ) {
860-
this.anchors.eq( index ).attr( "href", url );
861-
}
862-
});
863-
864857
// abort method
865858
$.widget( "ui.tabs", $.ui.tabs, {
866859
abort: function() {

0 commit comments

Comments
 (0)