aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDavid Petersen <public@petersendidit.com>2011-03-26 16:49:14 -0400
committerDavid Petersen <public@petersendidit.com>2011-03-26 21:02:17 -0400
commit03eb54b37902db771accd3a53bad1b927c058bc7 (patch)
tree04547fbaf96f4a49aa9515501e274ce777dd5696 /ui
parente378876918361182e6cb6321159393828848b2c9 (diff)
downloadjquery-ui-03eb54b37902db771accd3a53bad1b927c058bc7.tar.gz
jquery-ui-03eb54b37902db771accd3a53bad1b927c058bc7.zip
Tabs: Deprecate the length method. Fixes #7143 Tabs: Deprecate the length method
Diffstat (limited to 'ui')
-rwxr-xr-xui/jquery.ui.tabs.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 03f085ea2..c026858ee 100755
--- a/ui/jquery.ui.tabs.js
+++ b/ui/jquery.ui.tabs.js
@@ -568,10 +568,6 @@ $.widget( "ui.tabs", {
url: function( index, url ) {
this.anchors.eq( index ).data( "load.tabs", url );
return this;
- },
-
- length: function() {
- return this.anchors.length;
}
});
@@ -812,6 +808,12 @@ if ( $.uiBackCompat !== false ) {
};
}( jQuery, jQuery.ui.tabs.prototype ) );
+ // length method
+ (function( $, prototype ) {
+ prototype.length = function() {
+ return this.anchors.length;
+ };
+ }( jQuery, jQuery.ui.tabs.prototype ) );
}
})( jQuery );