Index: trunk/phase3/resources/mediawiki.language/mediawiki.language.js |
— | — | @@ -22,7 +22,7 @@ |
23 | 23 | 'procPLURAL': function( template ) { |
24 | 24 | if ( template.title && template.parameters && mw.language.convertPlural ) { |
25 | 25 | // Check if we have forms to replace |
26 | | - if ( template.parameters.length == 0 ) { |
| 26 | + if ( template.parameters.length === 0 ) { |
27 | 27 | return ''; |
28 | 28 | } |
29 | 29 | // Restore the count into a Number ( if it got converted earlier ) |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | * @return string Correct form for quantifier in this language |
46 | 46 | */ |
47 | 47 | 'convertPlural': function( count, forms ){ |
48 | | - if ( !forms || forms.length == 0 ) { |
| 48 | + if ( !forms || forms.length === 0 ) { |
49 | 49 | return ''; |
50 | 50 | } |
51 | 51 | return ( parseInt( count, 10 ) == 1 ) ? forms[0] : forms[1]; |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | * @return string |
111 | 111 | */ |
112 | 112 | 'gender': function( gender, forms ) { |
113 | | - if ( !forms || forms.length == 0 ) { |
| 113 | + if ( !forms || forms.length === 0 ) { |
114 | 114 | return ''; |
115 | 115 | } |
116 | 116 | forms = mw.language.preConvertPlural( forms, 2 ); |
— | — | @@ -119,7 +119,7 @@ |
120 | 120 | if ( gender === 'female' ) { |
121 | 121 | return forms[1]; |
122 | 122 | } |
123 | | - return ( forms.length == 3 ) ? forms[2] : forms[0]; |
| 123 | + return ( forms.length === 3 ) ? forms[2] : forms[0]; |
124 | 124 | }, |
125 | 125 | |
126 | 126 | // Digit Transform Table, populated by language classes where applicable |