From: Trevor Parscal Date: Mon, 6 Dec 2010 21:09:53 +0000 (+0000) Subject: Improves on r77710 - no purpose in using call() here. X-Git-Tag: 1.31.0-rc.0~33506 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=887d1d1660bfd1f0b080e8cfdb24d6a2bf11ae16;p=lhc%2Fweb%2Fwiklou.git Improves on r77710 - no purpose in using call() here. --- diff --git a/resources/jquery/jquery.localize.js b/resources/jquery/jquery.localize.js index a7aef5dfc4..1f65833142 100644 --- a/resources/jquery/jquery.localize.js +++ b/resources/jquery/jquery.localize.js @@ -36,21 +36,21 @@ .find( 'msg' ) .each( function() { $(this) - .text( mediaWiki.msg.call( mw, options.prefix + $(this).attr( 'key' ) ) ) + .text( mediaWiki.msg( options.prefix + $(this).attr( 'key' ) ) ) .replaceWith( $(this).html() ); } ) .end() .find( '[title-msg]' ) .each( function() { $(this) - .attr( 'title', mw.msg.call( mw, options.prefix + $(this).attr( 'title-msg' ) ) ) + .attr( 'title', mw.msg( options.prefix + $(this).attr( 'title-msg' ) ) ) .removeAttr( 'title-msg' ); } ) .end() .find( '[alt-msg]' ) .each( function() { $(this) - .attr( 'alt', mw.msg.call( mw, options.prefix + $(this).attr( 'alt-msg' ) ) ) + .attr( 'alt', mw.msg( options.prefix + $(this).attr( 'alt-msg' ) ) ) .removeAttr( 'alt-msg' ); } ) .end();