aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-10 09:30:52 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-10 09:30:52 -0400
commitac04462d22d30f4b1a5e0dd34d57fbcc0450b48d (patch)
tree99e71d2bde046bca90a430e0462e20b143d5b5e0 /ui
parent4b0d60131ed353c7a6fef7151337d31f2e256a7f (diff)
downloadjquery-ui-ac04462d22d30f4b1a5e0dd34d57fbcc0450b48d.tar.gz
jquery-ui-ac04462d22d30f4b1a5e0dd34d57fbcc0450b48d.zip
Tabs: Cleanup.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.tabs.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 515a93ae0..62bab2d9f 100644
--- a/ui/jquery.ui.tabs.js
+++ b/ui/jquery.ui.tabs.js
@@ -354,7 +354,7 @@ $.widget( "ui.tabs", {
if ( toShow.length ) {
- // TODO make passing in node possible, see also http://dev.jqueryui.com/ticket/3171
+ // TODO make passing in node possible
that.load( that.anchors.index( clicked ), event );
clicked[ 0 ].blur();
@@ -449,12 +449,10 @@ $.widget( "ui.tabs", {
this.list.removeClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" );
- this.anchors.each(function() {
- var $this = $( this ).unbind( ".tabs" );
- $.each( [ "href", "load" ], function( i, prefix ) {
- $this.removeData( prefix + ".tabs" );
- });
- });
+ this.anchors
+ .unbind( ".tabs" )
+ .removeData( "href.tabs" )
+ .removeData( "load.tabs" );
this.lis.unbind( ".tabs" ).add( this.panels ).each(function() {
if ( $.data( this, "destroy.tabs" ) ) {