Deprecate window.$j
authortonythomas01 <01tonythomas@gmail.com>
Wed, 5 Mar 2014 11:41:15 +0000 (17:11 +0530)
committerKrinkle <krinklemail@gmail.com>
Wed, 5 Mar 2014 13:35:20 +0000 (13:35 +0000)
Bug: 62198
Change-Id: I871a0906730a1038311256e3e6e8ce3a293bd9ca

RELEASE-NOTES-1.23
resources/mediawiki/mediawiki.js

index 63e1b28..bb807d9 100644 (file)
@@ -271,6 +271,7 @@ changes to languages because of Bugzilla reports.
 * On Special:PrefixIndex, a table#mw-prefixindex-list-table was changed to
   table.mw-prefixindex-list-table to avoid duplicate ids when the special page
   is transcluded.
+* (bug 62198) window.$j has been deprecated.
 
 ==== Removed classes ====
 * FakeMemCachedClient (deprecated in 1.18)
index 9bb86af..26f84f5 100644 (file)
@@ -2355,7 +2355,7 @@ var mw = ( function ( $, undefined ) {
 }( jQuery ) );
 
 // Alias $j to jQuery for backwards compatibility
-window.$j = jQuery;
+mw.log.deprecate( window, '$j', jQuery, 'Use $ or jQuery instead.' );
 
 // Attach to window and globally alias
 window.mw = window.mediaWiki = mw;