Skip to content

Commit ac04462

Browse files
committed
Tabs: Cleanup.
1 parent 4b0d601 commit ac04462

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

ui/jquery.ui.tabs.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ $.widget( "ui.tabs", {
354354

355355
if ( toShow.length ) {
356356

357-
// TODO make passing in node possible, see also http://dev.jqueryui.com/ticket/3171
357+
// TODO make passing in node possible
358358
that.load( that.anchors.index( clicked ), event );
359359

360360
clicked[ 0 ].blur();
@@ -449,12 +449,10 @@ $.widget( "ui.tabs", {
449449

450450
this.list.removeClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" );
451451

452-
this.anchors.each(function() {
453-
var $this = $( this ).unbind( ".tabs" );
454-
$.each( [ "href", "load" ], function( i, prefix ) {
455-
$this.removeData( prefix + ".tabs" );
456-
});
457-
});
452+
this.anchors
453+
.unbind( ".tabs" )
454+
.removeData( "href.tabs" )
455+
.removeData( "load.tabs" );
458456

459457
this.lis.unbind( ".tabs" ).add( this.panels ).each(function() {
460458
if ( $.data( this, "destroy.tabs" ) ) {

0 commit comments

Comments
 (0)