Update jquery.uls from upstream
Updating to a5a4701792
Bug: T328956
Change-Id: Ibbce56b36231dc1e44bdff2542b4735c870cfe00
This commit is contained in:
@@ -148,6 +148,10 @@
|
|||||||
*/
|
*/
|
||||||
highlightLanguageOption: function () {
|
highlightLanguageOption: function () {
|
||||||
var $listItems = this.getLanguageOptionListItems();
|
var $listItems = this.getLanguageOptionListItems();
|
||||||
|
// There are no language items. Nothing to highlight.
|
||||||
|
if ( !$listItems.length ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$listItems.removeClass( 'uls-language-option--highlighted' );
|
$listItems.removeClass( 'uls-language-option--highlighted' );
|
||||||
|
|
||||||
var $selectedItem = $listItems.eq( this.navigationIndex );
|
var $selectedItem = $listItems.eq( this.navigationIndex );
|
||||||
|
|||||||
Reference in New Issue
Block a user