Tabs: Removed length method. Fixes #7161 - Tabs: Remove length method.

This commit is contained in:
Scott González 2012-10-25 05:37:37 -04:00
parent 0429532ad1
commit 1a7958a430
2 changed files with 0 additions and 14 deletions

View File

@ -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 );

View File

@ -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: {