r73151 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73150‎ | r73151 | r73152 >
Date:21:12, 16 September 2010
Author:tparscal
Status:ok
Tags:
Comment:
Fixed syntax errors in message get function
Modified paths:
  • /trunk/phase3/resources/mediawiki/mediawiki.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/mediawiki/mediawiki.js
@@ -99,7 +99,8 @@
100100 return results;
101101 } else if ( typeof selection === 'string' ) {
102102 if ( typeof values[selection] === 'undefined' ) {
103 - return 'fallback' in options !== 'undefined' ? options.fallback : null;
 103+ return typeof options === 'object' && 'fallback' in options ?
 104+ options.fallback : '<' + selection + '>';
104105 } else {
105106 if ( typeof parser === 'function' ) {
106107 return parser( values[selection], options );

Status & tagging log