Skip to content

Commit 1a7958a

Browse files
committed
Tabs: Removed length method. Fixes #7161 - Tabs: Remove length method.
1 parent 0429532 commit 1a7958a

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

tests/unit/tabs/tabs_deprecated.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -468,13 +468,6 @@ test( "select", function() {
468468
equal( element.tabs( "option", "selected" ), 1, "selected" );
469469
});
470470

471-
test( "length", function() {
472-
expect( 2 );
473-
474-
equal( $( "#tabs1" ).tabs().tabs( "length" ), 3, "basic tabs" );
475-
equal( $( "#tabs2" ).tabs().tabs( "length" ), 5, "ajax tabs with missing panels" );
476-
});
477-
478471
asyncTest( "abort", function() {
479472
expect( 1 );
480473

ui/jquery.ui.tabs.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,13 +1021,6 @@ if ( $.uiBackCompat !== false ) {
10211021
}
10221022
});
10231023

1024-
// length method
1025-
$.widget( "ui.tabs", $.ui.tabs, {
1026-
length: function() {
1027-
return this.anchors.length;
1028-
}
1029-
});
1030-
10311024
// panel ids (idPrefix option + title attribute)
10321025
$.widget( "ui.tabs", $.ui.tabs, {
10331026
options: {

0 commit comments

Comments
 (0)