Skip to content

Commit e93993c

Browse files
committed
Update data naming for Tabs. Partial fix for #7810
1 parent bfadd5c commit e93993c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/jquery.ui.tabs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ $.widget( "ui.tabs", {
257257
return $( "<div></div>" )
258258
.attr( "id", id )
259259
.addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" )
260-
.data( "destroy.tabs", true );
260+
.data( "ui-tabs-destroy", true );
261261
},
262262

263263
_setupDisabled: function( disabled ) {
@@ -457,7 +457,7 @@ $.widget( "ui.tabs", {
457457
.removeData( "load.tabs" );
458458

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

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

761761
var doInsertAfter = index >= this.lis.length;
@@ -855,7 +855,7 @@ if ( $.uiBackCompat !== false ) {
855855
return $( this.options.panelTemplate )
856856
.attr( "id", id )
857857
.addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" )
858-
.data( "destroy.tabs", true );
858+
.data( "ui-tabs-destroy", true );
859859
}
860860
});
861861

0 commit comments

Comments
 (0)