Cleanup for JSHint

Change-Id: I35d2d41640f405f4e1e94b18ddac751437a84bb5
This commit is contained in:
Amir E. Aharoni
2013-01-16 12:51:56 +02:00
parent 16424982eb
commit 4f651fa0e2
4 changed files with 11 additions and 11 deletions

View File

@@ -107,8 +107,8 @@
function i18nInit() {
var extensionPath, locales, i18n;
extensionPath = mw.config.get( 'wgExtensionAssetsPath' )
+ '/UniversalLanguageSelector/';
extensionPath = mw.config.get( 'wgExtensionAssetsPath' ) +
'/UniversalLanguageSelector/';
locales = mw.config.get( 'wgULSi18nLocales' );
i18n = $.i18n( {
@@ -118,7 +118,7 @@
// the message key with a unique namespace like ext-uls-*
if ( messageKey.indexOf( 'uls' ) === 0 ) {
if ( $.inArray( locale, locales['uls'] ) >= 0 ) {
if ( $.inArray( locale, locales.uls ) >= 0 ) {
return extensionPath + 'lib/jquery.uls/i18n/' + locale + '.json';
}