http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73605

Revision: 73605
Author:   werdna
Date:     2010-09-23 14:34:43 +0000 (Thu, 23 Sep 2010)

Log Message:
-----------
Kill JS2 compatibility stuff, it breaks things

Modified Paths:
--------------
    trunk/extensions/LiquidThreads/jquery/plugins.js

Modified: trunk/extensions/LiquidThreads/jquery/plugins.js
===================================================================
--- trunk/extensions/LiquidThreads/jquery/plugins.js    2010-09-23 14:12:57 UTC 
(rev 73604)
+++ trunk/extensions/LiquidThreads/jquery/plugins.js    2010-09-23 14:34:43 UTC 
(rev 73605)
@@ -3723,61 +3723,3 @@
 });
 
 })(jQuery);
-/* JavaScript for MediaWIki JS2 */
-
-/**
- * This is designed to be directly compatible with (and is essentially taken
- * directly from) the mv_embed code for bringing internationalized messages 
into
- * the JavaScript space. As such, if we get to the point of merging that stuff
- * into the main branch this code will be uneeded and probably cause issues.
- */
-// Creates global message object if not already in existence
-if ( !gMsg ) var gMsg = {};
-if( ! mw ) var mw = { };
-
-/**
- * Caches a list of messages for later retrieval
- * @param {Object} msgSet Hash of key:value pairs of messages to cache
- */
-if( ! mw.addMessages ){
-       mw.addMessages = function( msgSet ){
-               for ( var i in msgSet ){
-                       gMsg[ i ] = msgSet[i];
-               }
-       }
-}
-
-/**
- * Retieves a message from the global message cache, performing on-the-fly
- * replacements using MediaWiki message syntax ($1, $2, etc.)
- * @param {String} key Name of message as it is in MediaWiki
- * @param {Array} args Array of replacement arguments
- */
-function gM( key, args ) {
-       var ms = '';    
-       if ( key in gMsg ) {
-               ms = gMsg[ key ];
-               if ( typeof args == 'object' || typeof args == 'array' ) {
-                       for ( var v in args ){
-                               var rep = '\$'+ ( parseInt(v) + 1 );
-                               ms = ms.replace( rep, args[v]);
-                       }
-               } else if ( typeof args =='string' || typeof args =='number' ) {
-                       ms = ms.replace( /\$1/, args );
-               }
-               return ms;
-       } else {
-               return '[' + key + ']';
-       }
-}
-/**
- * Mimics the no-conflict method used by the js2 stuff
- */
-$j = jQuery.noConflict();
-/**
- * Provides js2 compatible onload hook
- * @param func Function to call when ready
- */
-mw.addOnloadHook = function( func ) {
-       $j(document).ready( func );
-}



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to