Skip to content

Commit

Permalink
Tabs: Removed length method. Fixes #7161 - Tabs: Remove length method.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Oct 25, 2012
1 parent 0429532 commit 1a7958a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions tests/unit/tabs/tabs_deprecated.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -468,13 +468,6 @@ test( "select", function() {
equal( element.tabs( "option", "selected" ), 1, "selected" ); 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() { asyncTest( "abort", function() {
expect( 1 ); expect( 1 );


Expand Down
7 changes: 0 additions & 7 deletions ui/jquery.ui.tabs.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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) // panel ids (idPrefix option + title attribute)
$.widget( "ui.tabs", $.ui.tabs, { $.widget( "ui.tabs", $.ui.tabs, {
options: { options: {
Expand Down

0 comments on commit 1a7958a

Please sign in to comment.