aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-25 05:37:37 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-25 05:37:37 -0400
commit1a7958a43096ced70043514055e8f62422d860fd (patch)
treede85ee9ef7fb614ae2cb57db2d5a5fa6b63d6964
parent0429532ad10b0708e085c4830bb930d8457d62f4 (diff)
downloadjquery-ui-1a7958a43096ced70043514055e8f62422d860fd.tar.gz
jquery-ui-1a7958a43096ced70043514055e8f62422d860fd.zip
Tabs: Removed length method. Fixes #7161 - Tabs: Remove length method.
-rw-r--r--tests/unit/tabs/tabs_deprecated.js7
-rw-r--r--ui/jquery.ui.tabs.js7
2 files changed, 0 insertions, 14 deletions
diff --git a/tests/unit/tabs/tabs_deprecated.js b/tests/unit/tabs/tabs_deprecated.js
index b93417375..2de612853 100644
--- a/tests/unit/tabs/tabs_deprecated.js
+++ b/tests/unit/tabs/tabs_deprecated.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 );
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 76216bfc9..5f6d87eee 100644
--- a/ui/jquery.ui.tabs.js
+++ b/ui/jquery.ui.tabs.js
@@ -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: {