Skip to content
Permalink
Browse files

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

  • Loading branch information...
scottgonzalez committed Oct 25, 2012
1 parent 0429532 commit 1a7958a43096ced70043514055e8f62422d860fd
Showing with 0 additions and 14 deletions.
  1. +0 −7 tests/unit/tabs/tabs_deprecated.js
  2. +0 −7 ui/jquery.ui.tabs.js
@@ -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 );

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

0 comments on commit 1a7958a

Please sign in to comment.
You can’t perform that action at this time.