mediawiki.jqueryMsg: Fix examples in comments
authorFomafix <fomafix@googlemail.com>
Mon, 9 Mar 2015 20:55:47 +0000 (20:55 +0000)
committer[[mw:User:Fomafix]] <gerritpatchuploader@gmail.com>
Mon, 9 Mar 2015 20:55:47 +0000 (20:55 +0000)
Change-Id: Ia6fcb718e9c0ef073ed472af29c8ca4507f45b5a

resources/src/mediawiki/mediawiki.jqueryMsg.js

index b5c2dba..79939f6 100644 (file)
         * 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
         * 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 = $( '<a>' ).click( function () { alert( "hello!!" ) } );
         *        $( 'p#headline' ).msg( 'hello-user', userlink );
         *