http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72918
Revision: 72918 Author: tparscal Date: 2010-09-13 18:04:29 +0000 (Mon, 13 Sep 2010) Log Message: ----------- Added alias of jQuery to $j - this is only to get site/user scripts that were using $j to work. Use of $j should be phased out in favor of $. If you are writing a library that's intended for re-use, please wrap it in a closure that passes jQuery as $ such as "( function( $ ) { /* code here */ } )( jQuery );" so that people using alternative short names for jQuery can use the code unmodified. Modified Paths: -------------- trunk/phase3/skins/common/wikibits.js Modified: trunk/phase3/skins/common/wikibits.js =================================================================== --- trunk/phase3/skins/common/wikibits.js 2010-09-13 18:00:30 UTC (rev 72917) +++ trunk/phase3/skins/common/wikibits.js 2010-09-13 18:04:29 UTC (rev 72918) @@ -1093,4 +1093,8 @@ if ( ie6_bugs ) { importScriptURI( stylepath + '/common/IEFixes.js' ); -} \ No newline at end of file +} + +// jQuery alias + +window.$j = jQuery; \ No newline at end of file _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs