Update jquery.uls from upstream
Update jquery.uls to:
95e65bf1b0
Bug: T333822
Change-Id: I85e3eccdb52b5178d2b1a8913fc069deb1d2345d
This commit is contained in:
@@ -155,6 +155,13 @@
|
||||
$listItems.removeClass( 'uls-language-option--highlighted' );
|
||||
|
||||
var $selectedItem = $listItems.eq( this.navigationIndex );
|
||||
if ( $selectedItem.length === 0 ) {
|
||||
throw new Error(
|
||||
'Could not identify selected item with index: ' + this.navigationIndex + '; ' +
|
||||
'Total items in ULS: ' + $listItems.length
|
||||
);
|
||||
}
|
||||
|
||||
$selectedItem.addClass( 'uls-language-option--highlighted' );
|
||||
|
||||
// If the selected item is not visible, then scroll the container to display it
|
||||
|
||||
Reference in New Issue
Block a user