Jdlrobson has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/351220 )

Change subject: Hygiene: Don't unnecessarily use loadModuleScript
......................................................................

Hygiene: Don't unnecessarily use loadModuleScript

This is loaded unconditionally
loadModuleScript is only designed to run when a button is clicked
and the user needs feedback. It doesnt apply here

Change-Id: Id8f231f92addf8004b94791ff36af59d86e5b032
---
M resources/skins.minerva.notifications/init.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/20/351220/1

diff --git a/resources/skins.minerva.notifications/init.js 
b/resources/skins.minerva.notifications/init.js
index ecd33ca..719edbd 100644
--- a/resources/skins.minerva.notifications/init.js
+++ b/resources/skins.minerva.notifications/init.js
@@ -123,7 +123,7 @@
                        }
 
                        // Load the notification filter overlay
-                       loadModuleScript( 'mobile.notifications.filter.overlay' 
).done( function () {
+                       mw.loader.using( 'mobile.notifications.filter.overlay' 
).done( function () {
                                var $crossWikiUnreadFilter = $( 
'.mw-echo-ui-crossWikiUnreadFilterWidget' ),
                                        $notifReadState = $( 
'.mw-echo-ui-notificationsInboxWidget-main-toolbar-readState' ),
                                        NotificationsFilterOverlay = M.require( 
'mobile.notifications.filter.overlay/NotificationsFilterOverlay' );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id8f231f92addf8004b94791ff36af59d86e5b032
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to