From 887d1d1660bfd1f0b080e8cfdb24d6a2bf11ae16 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Mon, 6 Dec 2010 21:09:53 +0000 Subject: [PATCH] Improves on r77710 - no purpose in using call() here. --- resources/jquery/jquery.localize.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.20.1