From: aude Date: Mon, 4 Jul 2016 12:10:50 +0000 (+0200) Subject: Fix comment typos in mediawiki.js X-Git-Tag: 1.31.0-rc.0~6461 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/%27%20.%20%24_val%20.%20%27?a=commitdiff_plain;h=7e57732470fb3553b1d66a02cab9381b6c5068e9;p=lhc%2Fweb%2Fwiklou.git Fix comment typos in mediawiki.js Change-Id: I40f90913f62f611f1bd940130751355f34dac5bf --- diff --git a/resources/src/mediawiki/mediawiki.js b/resources/src/mediawiki/mediawiki.js index 8d42b989ed..335e0bf4e9 100644 --- a/resources/src/mediawiki/mediawiki.js +++ b/resources/src/mediawiki/mediawiki.js @@ -1828,8 +1828,8 @@ * OO.compare( [ 1 ], [ 1 ] ); * } ); * - * @param {string|Array} dependencies Module name or array of modules names the callback - * dependends on to be ready before executing + * @param {string|Array} dependencies Module name or array of modules names the + * callback depends on to be ready before executing * @param {Function} [ready] Callback to execute when all dependencies are ready * @param {Function} [error] Callback to execute if one or more dependencies failed * @return {jQuery.Promise} @@ -2009,7 +2009,7 @@ require: function ( moduleName ) { var state = mw.loader.getState( moduleName ); - // Only ready mudules can be required + // Only ready modules can be required if ( state !== 'ready' ) { // Module may've forgotten to declare a dependency throw new Error( 'Module "' + moduleName + '" is not loaded.' );