jenkins-bot has submitted this change and it was merged.

Change subject: Replace deprecated 'jquery.mwExtension' by 'mediawiki.RegExp'
......................................................................


Replace deprecated 'jquery.mwExtension' by 'mediawiki.RegExp'

Replace $.escapeRE from 'jquery.mwExtension' by
mw.RegExp.escape from 'mediawiki.RegExp'.

This change requires MediaWiki 1.26+

Change-Id: Ifdfee9769472c430ffd9500bd43944c8b820cf0e
---
M MoodBar.php
M modules/ext.moodBar/ext.moodBar.core.js
M modules/ext.moodBar/ext.moodBar.tooltip.js
3 files changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Umherirrender: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/MoodBar.php b/MoodBar.php
index 4605df9..bdc33fa 100644
--- a/MoodBar.php
+++ b/MoodBar.php
@@ -123,7 +123,7 @@
        'dependencies' => array(
                'ext.moodBar.init',
                'jquery.cookie',
-               'jquery.mwExtension', // for $.escapeRE()
+               'mediawiki.RegExp',
        ),
 );
 
@@ -195,9 +195,9 @@
                'ext.moodBar.init', // just in case
                'jquery.localize',
                'jquery.moodBar',
-               'jquery.mwExtension', // for $.escapeRE()
                'jquery.NobleCount',
                'mediawiki.jqueryMsg', // for PLURAL support
+               'mediawiki.RegExp',
                'mediawiki.util',
        ),
        'position' => 'bottom',
diff --git a/modules/ext.moodBar/ext.moodBar.core.js 
b/modules/ext.moodBar/ext.moodBar.core.js
index 822d73f..e97631e 100644
--- a/modules/ext.moodBar/ext.moodBar.core.js
+++ b/modules/ext.moodBar/ext.moodBar.core.js
@@ -422,7 +422,7 @@
                        var subTitle = 
overlay.find('.mw-moodBar-state-subtitle' ),
                                subTitleText = subTitle
                                        .text()
-                                       .replace( new RegExp( 
$.escapeRE('$FBD-LINK'), 'g' ), fbdLink );
+                                       .replace( new RegExp( 
mw.RegExp.escape('$FBD-LINK'), 'g' ), fbdLink );
                        subTitle.html(subTitleText);
 
                },
diff --git a/modules/ext.moodBar/ext.moodBar.tooltip.js 
b/modules/ext.moodBar/ext.moodBar.tooltip.js
index b6860c5..7ce6c37 100644
--- a/modules/ext.moodBar/ext.moodBar.tooltip.js
+++ b/modules/ext.moodBar/ext.moodBar.tooltip.js
@@ -36,7 +36,7 @@
                                                ).append(
                                                        $('<div>').attr('id', 
'moodbar-tooltip-title')
                                                                .text( mw.msg( 
'moodbar-tooltip-title' )
-                                                               .replace( new 
RegExp( $.escapeRE('{{SITENAME}}'), 'g' ), mw.config.get( 'wgSiteName' ) )
+                                                               .replace( new 
RegExp( mw.RegExp.escape('{{SITENAME}}'), 'g' ), mw.config.get( 'wgSiteName' ) )
                                                        )
                                                )
                                        );

-- 
To view, visit https://gerrit.wikimedia.org/r/221077
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifdfee9769472c430ffd9500bd43944c8b820cf0e
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MoodBar
Gerrit-Branch: master
Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com>
Gerrit-Reviewer: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com>
Gerrit-Reviewer: Umherirrender <umherirrender_de...@web.de>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to