Skip to content

Commit

Permalink
Update data naming for Tabs. Partial fix for #7810
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Mar 1, 2012
1 parent bfadd5c commit e93993c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/jquery.ui.tabs.js
Expand Up @@ -257,7 +257,7 @@ $.widget( "ui.tabs", {
return $( "<div></div>" )
.attr( "id", id )
.addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" )
.data( "destroy.tabs", true );
.data( "ui-tabs-destroy", true );
},

_setupDisabled: function( disabled ) {
Expand Down Expand Up @@ -457,7 +457,7 @@ $.widget( "ui.tabs", {
.removeData( "load.tabs" );

this.lis.unbind( ".tabs" ).add( this.panels ).each(function() {
if ( $.data( this, "destroy.tabs" ) ) {
if ( $.data( this, "ui-tabs-destroy" ) ) {
$( this ).remove();
} else {
$( this ).removeClass([
Expand Down Expand Up @@ -755,7 +755,7 @@ if ( $.uiBackCompat !== false ) {
url.replace( "#", "" ) :
this._tabId( li.find( "a" )[ 0 ] );

li.addClass( "ui-state-default ui-corner-top" ).data( "destroy.tabs", true );
li.addClass( "ui-state-default ui-corner-top" ).data( "ui-tabs-destroy", true );
li.find( "a" ).attr( "aria-controls", id );

var doInsertAfter = index >= this.lis.length;
Expand Down Expand Up @@ -855,7 +855,7 @@ if ( $.uiBackCompat !== false ) {
return $( this.options.panelTemplate )
.attr( "id", id )
.addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" )
.data( "destroy.tabs", true );
.data( "ui-tabs-destroy", true );
}
});

Expand Down

0 comments on commit e93993c

Please sign in to comment.