Improves on r77710 - no purpose in using call() here.
authorTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 6 Dec 2010 21:09:53 +0000 (21:09 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 6 Dec 2010 21:09:53 +0000 (21:09 +0000)
resources/jquery/jquery.localize.js

index a7aef5d..1f65833 100644 (file)
                        .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();