Skip to content

Commit

Permalink
Tabs: Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Aug 10, 2011
1 parent 4b0d601 commit ac04462
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ui/jquery.ui.tabs.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ $.widget( "ui.tabs", {


if ( toShow.length ) { 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 ); that.load( that.anchors.index( clicked ), event );


clicked[ 0 ].blur(); clicked[ 0 ].blur();
Expand Down Expand Up @@ -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.list.removeClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" );


this.anchors.each(function() { this.anchors
var $this = $( this ).unbind( ".tabs" ); .unbind( ".tabs" )
$.each( [ "href", "load" ], function( i, prefix ) { .removeData( "href.tabs" )
$this.removeData( prefix + ".tabs" ); .removeData( "load.tabs" );
});
});


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

0 comments on commit ac04462

Please sign in to comment.