mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Tabs: Removed length method. Fixes #7161 - Tabs: Remove length method.
This commit is contained in:
parent
0429532ad1
commit
1a7958a430
@ -468,13 +468,6 @@ test( "select", function() {
|
||||
equal( element.tabs( "option", "selected" ), 1, "selected" );
|
||||
});
|
||||
|
||||
test( "length", function() {
|
||||
expect( 2 );
|
||||
|
||||
equal( $( "#tabs1" ).tabs().tabs( "length" ), 3, "basic tabs" );
|
||||
equal( $( "#tabs2" ).tabs().tabs( "length" ), 5, "ajax tabs with missing panels" );
|
||||
});
|
||||
|
||||
asyncTest( "abort", function() {
|
||||
expect( 1 );
|
||||
|
||||
|
7
ui/jquery.ui.tabs.js
vendored
7
ui/jquery.ui.tabs.js
vendored
@ -1021,13 +1021,6 @@ if ( $.uiBackCompat !== false ) {
|
||||
}
|
||||
});
|
||||
|
||||
// length method
|
||||
$.widget( "ui.tabs", $.ui.tabs, {
|
||||
length: function() {
|
||||
return this.anchors.length;
|
||||
}
|
||||
});
|
||||
|
||||
// panel ids (idPrefix option + title attribute)
|
||||
$.widget( "ui.tabs", $.ui.tabs, {
|
||||
options: {
|
||||
|
Loading…
Reference in New Issue
Block a user