Simplify if statement

This commit is contained in:
Siebrand Mazeland
2012-12-27 21:45:35 +01:00
parent 8c54381e58
commit f9111d5e39

View File

@@ -340,11 +340,7 @@
// Pre-base vowel signs of Indic languages. A vowel sign is called pre-base if
// consonant + vowel becomes [vowel][consonant] when rendered. Eg: ക + െ => കെ
var prebases = "െേൈൊോൌெேைொோௌେୈୋୌિਿिিেৈোৌෙේෛොෝෞ";
if ( prebases.indexOf( string[prefix.length] ) > 0 ) {
return false;
} else {
return true;
}
return prebases.indexOf( string[prefix.length] ) <= 0;
}
} ( jQuery ) );