r106180 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106179‎ | r106180 | r106181 >
Date:12:31, 14 December 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Some JSHint fixes
Modified paths:
  • /trunk/extensions/Kieli/ext.kieli.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Kieli/ext.kieli.js
@@ -44,7 +44,7 @@
4545 };
4646 $.get( mw.util.wikiScript( "api" ), params, $.kieli.buildMenu );
4747
48 - var params = {
 48+ params = {
4949 action: "query",
5050 meta: "siteinfo",
5151 siprop: "languages",
@@ -59,7 +59,7 @@
6060 var localnames = mw.config.get( "wgKieliLanguages" );
6161 for ( var i = 0; i < languages.length; i++ ) {
6262 var name = languages[i]["*"];
63 - var code = languages[i]["code"];
 63+ var code = languages[i].code;
6464 if ( localnames[code] && localnames[code] !== name ) {
6565 var localnamecode = localnames[code] + " (" + code + ")";
6666 langlist.push( { label: localnamecode, value: code } );
@@ -123,7 +123,7 @@
124124 var name = names && names[id] || id;
125125
126126 var $link = $( '<input type="radio" name="language" />' )
127 - .val( id )
 127+ .val( id );
128128 if ( id === current ) {
129129 $link = $link.attr( "checked", true );
130130 }

Status & tagging log