r83649 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83648‎ | r83649 | r83650 >
Date:15:12, 10 March 2011
Author:demon
Status:ok
Tags:
Comment:
(bug 27970) Wrong variable name, dependencies -> modules
Modified paths:
  • /trunk/phase3/resources/mediawiki/mediawiki.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/mediawiki/mediawiki.js
@@ -1015,8 +1015,8 @@
10161016 this.load = function( modules, type ) {
10171017 // Validate input
10181018 if ( typeof modules !== 'object' && typeof modules !== 'string' ) {
1019 - throw new Error( 'dependencies must be a string or an array, not a ' +
1020 - typeof dependencies )
 1019+ throw new Error( 'modules must be a string or an array, not a ' +
 1020+ typeof modules )
10211021 }
10221022 // Allow calling with an external script or single dependency as a string
10231023 if ( typeof modules === 'string' ) {

Status & tagging log