Remove jQuery.inArray usages

Replace jQuery.inArray with JS native Array.prototype.indexOf

Change-Id: I0031f0385e440a34846334d158425182542a9ac9
This commit is contained in:
petarpetkovic
2018-08-24 20:46:59 +02:00
committed by jenkins-bot
parent 54a3313e1a
commit 5a1da4dbaa
5 changed files with 11 additions and 11 deletions

View File

@@ -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;
}