Remove jQuery.inArray usages
Replace jQuery.inArray with JS native Array.prototype.indexOf Change-Id: I0031f0385e440a34846334d158425182542a9ac9
This commit is contained in:
committed by
jenkins-bot
parent
54a3313e1a
commit
5a1da4dbaa
@@ -232,7 +232,7 @@
|
||||
|
||||
for ( lang in suggestedLanguages ) {
|
||||
// Skip already found languages
|
||||
if ( $.inArray( suggestedLanguages[ lang ], languagesForButtons ) > -1 ) {
|
||||
if ( languagesForButtons.indexOf( suggestedLanguages[ lang ] ) > -1 ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user