From f80f2646996435ae801a0d808e0e28f9e16a790a Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Mon, 13 Sep 2010 18:04:29 +0000 Subject: [PATCH] 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. --- skins/common/wikibits.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index 0eda62608e..79f7aba4f0 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -1093,4 +1093,8 @@ hookEvent( 'load', runOnloadHook ); 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 -- 2.20.1