From: Fomafix Date: Mon, 9 Mar 2015 20:55:47 +0000 (+0000) Subject: mediawiki.jqueryMsg: Fix examples in comments X-Git-Tag: 1.31.0-rc.0~12148^2 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=0d84868ac691cdc00e181ed6bfe6723981a0a618;p=lhc%2Fweb%2Fwiklou.git mediawiki.jqueryMsg: Fix examples in comments Change-Id: Ia6fcb718e9c0ef073ed472af29c8ca4507f45b5a --- diff --git a/resources/src/mediawiki/mediawiki.jqueryMsg.js b/resources/src/mediawiki/mediawiki.jqueryMsg.js index b5c2dba943..79939f64d3 100644 --- a/resources/src/mediawiki/mediawiki.jqueryMsg.js +++ b/resources/src/mediawiki/mediawiki.jqueryMsg.js @@ -136,7 +136,7 @@ * Returns a function suitable for use as a global, to construct strings from the message key (and optional replacements). * e.g. * - * window.gM = mediaWiki.parser.getMessageFunction( options ); + * window.gM = mediaWiki.jqueryMsg.getMessageFunction( options ); * $( 'p#headline' ).html( gM( 'hello-user', username ) ); * * Like the old gM() function this returns only strings, so it destroys any bindings. If you want to preserve bindings use the @@ -178,7 +178,7 @@ * the current selector. Bindings to passed-in jquery elements are preserved. Functions become click handlers for [$1 linktext] links. * e.g. * - * $.fn.msg = mediaWiki.parser.getJqueryPlugin( options ); + * $.fn.msg = mediaWiki.jqueryMsg.getPlugin( options ); * var userlink = $( '' ).click( function () { alert( "hello!!" ) } ); * $( 'p#headline' ).msg( 'hello-user', userlink ); *