Add missing dollar prefix to jQuery variable

Change-Id: Ib6ea281b749e040d43c2dc3558a0a96ce59b7385
This commit is contained in:
Ed Sanders 2019-06-12 21:29:49 +01:00
parent a9ead1938b
commit 12e6a2b9d5
1 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
Anchor = mobile.Anchor,
overlayManager = OverlayManager.getSingleton(),
page = M.getCurrentPage(),
redLinks = page.getRedLinks(),
$redLinks = page.getRedLinks(),
api = new mw.Api(),
eventBus = mobile.eventBusSingleton,
namespaceIDs = mw.config.get( 'wgNamespaceIds' );
@ -227,7 +227,7 @@
* @return {void}
*/
function initUserRedLinks() {
redLinks.filter( function ( _, element ) {
$redLinks.filter( function ( _, element ) {
// Filter out non-User namespace pages.
return isUserUri( element.href );
} ).each( function ( _, element ) {
@ -264,7 +264,7 @@
* @ignore
*/
function initRedlinksCta() {
redLinks.filter( function ( _, element ) {
$redLinks.filter( function ( _, element ) {
// Filter out local User namespace pages.
return !isUserUri( element.href );
} ).on( 'click', function ( ev ) {