From: Chad Horohoe Date: Thu, 10 Mar 2011 15:12:36 +0000 (+0000) Subject: (bug 27970) Wrong variable name, dependencies -> modules X-Git-Tag: 1.31.0-rc.0~31526 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=0b01187a64730138cf8890e6075b7850a6ddd90c;p=lhc%2Fweb%2Fwiklou.git (bug 27970) Wrong variable name, dependencies -> modules --- diff --git a/resources/mediawiki/mediawiki.js b/resources/mediawiki/mediawiki.js index 5c842cd24f..893e4e4bd8 100644 --- a/resources/mediawiki/mediawiki.js +++ b/resources/mediawiki/mediawiki.js @@ -1015,8 +1015,8 @@ window.mediaWiki = new ( function( $ ) { this.load = function( modules, type ) { // Validate input if ( typeof modules !== 'object' && typeof modules !== 'string' ) { - throw new Error( 'dependencies must be a string or an array, not a ' + - typeof dependencies ) + throw new Error( 'modules must be a string or an array, not a ' + + typeof modules ) } // Allow calling with an external script or single dependency as a string if ( typeof modules === 'string' ) {