1
0
Fork 0

[DEV-3497] Updated variable name

master
Jeffrey Fisher 2018-08-30 10:23:29 -04:00
parent 43596eeed7
commit ee5306a279
1 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@ module.exports = Class( 'TabbedGroupUi' ).extend( GroupUi,
* Index of the default selected tab * Index of the default selected tab
* @type {number} * @type {number}
*/ */
'private _defaultSelectionIndex': null, 'private _defaultSelectionField': null,
/** /**
* Disable flags * Disable flags
@ -138,7 +138,7 @@ module.exports = Class( 'TabbedGroupUi' ).extend( GroupUi,
this._tabExtractSrc = $box.attr( 'data-tabextract-src' ); this._tabExtractSrc = $box.attr( 'data-tabextract-src' );
this._tabExtractDest = $box.attr( 'data-tabextract-dest' ); this._tabExtractDest = $box.attr( 'data-tabextract-dest' );
this._defaultSelectionIndex = $box.attr( 'data-default-selected-field' ) || ''; this._defaultSelectionField = $box.attr( 'data-default-selected-field' ) || '';
}, },
@ -493,7 +493,7 @@ module.exports = Class( 'TabbedGroupUi' ).extend( GroupUi,
// we will have already rated once by the time this is called // we will have already rated once by the time this is called
this._processHideFlags( this._bucket.getData() ); this._processHideFlags( this._bucket.getData() );
if ( this._defaultSelectionIndex == '' ) if ( this._defaultSelectionField === '' )
{ {
// select first tab that is eligible and // select first tab that is eligible and
// perform tab extraction (to reflect first eligible tab) // perform tab extraction (to reflect first eligible tab)
@ -502,8 +502,8 @@ module.exports = Class( 'TabbedGroupUi' ).extend( GroupUi,
else else
{ {
// select the tab based on selection index // select the tab based on selection index
var index = this._bucket.getDataByName( this._defaultSelectionIndex )[0]; var index = this._bucket.getDataByName( this._defaultSelectionField )[0];
this._selectTab( index ); this._selectTab( index || 0 );
} }
return this; return this;