diff --git a/css/jquery.uls.lcd.css b/css/jquery.uls.lcd.css index ca0ca00..fd2b978 100644 --- a/css/jquery.uls.lcd.css +++ b/css/jquery.uls.lcd.css @@ -139,6 +139,6 @@ left: 0; } -.language-option--highlighted { +.uls-language-option--highlighted { background-color: #eaeff7; } diff --git a/src/jquery.uls.lcd.js b/src/jquery.uls.lcd.js index 7826896..198fce3 100644 --- a/src/jquery.uls.lcd.js +++ b/src/jquery.uls.lcd.js @@ -55,14 +55,13 @@ this.$element.addClass( 'uls-lcd' ); this.regionLanguages = {}; - this.$languageOptionListItems = null; this.renderTimeout = null; this.$cachedQuicklist = null; this.groupByRegionOverride = null; // The index of the language option that is currently visited using arrow key navigation - // Can take values in the [0, languageOptionListItemsLength - 1] range for top to bottom - // navigation, or in the [-1, -languageOptionListItemsLength + 1] range for bottom to top + // Can take values in the [0, language options list item length - 1] range for top to bottom + // navigation, or in the [-1, -language options list item length + 1] range for bottom to top // navigation. this.navigationIndex = null; @@ -104,7 +103,7 @@ // We support navigation starting both from the top and the bottom of the language list. // The navigation should stop when the last language option is already highlighted (for // top to bottom navigation). For top to bottom navigation, that happens when navigation - // index is equal to languageOptionListItemsLength - 1. For bottom to top navigation, + // index is equal to language options list item length - 1. For bottom to top navigation, // that happens when navigation index is equal to -1. if ( this.navigationIndex === maxIndex || this.navigationIndex === -1 ) { return; @@ -140,15 +139,15 @@ }, /** - * Adds a specific class ("language-option--highlighted") only to the n-th + * Adds a specific class ("uls-language-option--highlighted") only to the n-th * language option