From 38b2aa65c4834d91a08c48720d22533a78626a28 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Sat, 14 May 2011 13:21:58 +0000 Subject: [PATCH] Fixed language in comments and error messages - see comments in r88053. --- resources/mediawiki/mediawiki.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/mediawiki/mediawiki.js b/resources/mediawiki/mediawiki.js index f4f93f327d..ab4add5f40 100644 --- a/resources/mediawiki/mediawiki.js +++ b/resources/mediawiki/mediawiki.js @@ -1124,7 +1124,6 @@ window.mediaWiki = new ( function( $ ) { * attribute when adding a script element to the body * @param style Object: Object of CSS strings keyed by media-type or Object of lists of URLs * keyed by media-type - * as the href attribute when adding a link element to the head * @param msgs Object: List of key/value pairs to be passed through mw.messages.set */ this.implement = function( module, script, style, msgs ) { @@ -1136,7 +1135,7 @@ window.mediaWiki = new ( function( $ ) { throw new Error( 'script must be a function or an array, not a ' + typeof script ); } if ( !$.isPlainObject( style ) ) { - throw new Error( 'style must be a object or a string, not a ' + typeof style ); + throw new Error( 'style must be an object or a string, not a ' + typeof style ); } if ( !$.isPlainObject( msgs ) ) { throw new Error( 'msgs must be an object, not a ' + typeof msgs ); -- 2.20.1