(bug 27970) Wrong variable name, dependencies -> modules
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 10 Mar 2011 15:12:36 +0000 (15:12 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 10 Mar 2011 15:12:36 +0000 (15:12 +0000)
resources/mediawiki/mediawiki.js

index 5c842cd..893e4e4 100644 (file)
@@ -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' ) {