Using the mw alias for mediaWiki in core. Saves bandwidth and makes sense (there...
[lhc/web/wiklou.git] / resources / jquery / jquery.localize.js
index b913f33..27d6584 100644 (file)
@@ -36,8 +36,9 @@ $.fn.localize = function( options ) {
        return $(this)
                .find( 'msg,html\\:msg' )
                        .each( function() {
+                               var $el = $(this);
                                $(this)
-                                       .text( mediaWiki.msg( options.prefix + $(this).attr( 'key' ) ) )
+                                       .text( mw.msg( options.prefix + $(this).attr( 'key' ) ) )
                                        .replaceWith( $(this).html() );
                        } )
                        .end()