mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-12 08:58:25 +00:00
Dev: Access OverlayManager via singleton method not M.define
Change-Id: Icb152f21bfd3a091676980a025dc651e49f49312
This commit is contained in:
parent
4d24e068eb
commit
96cee263fb
|
@ -4,7 +4,8 @@ module.exports = function () {
|
|||
mobile = M.require( 'mobile.startup' ),
|
||||
loader = mobile.rlModuleLoader,
|
||||
features = mw.config.get( 'wgMinervaFeatures', {} ),
|
||||
overlayManager = require( 'skins.minerva.scripts' ).overlayManager,
|
||||
OverlayManager = mobile.OverlayManager,
|
||||
overlayManager = OverlayManager.getSingleton(),
|
||||
eventBus = mobile.eventBusSingleton,
|
||||
isAnon = mw.user.isAnon();
|
||||
|
||||
|
|
|
@ -357,7 +357,4 @@
|
|||
isSmall: true
|
||||
} ).$el.appendTo( '.toctitle' );
|
||||
} );
|
||||
module.exports = {
|
||||
overlayManager: overlayManager
|
||||
};
|
||||
}( mw.mobileFrontend ) );
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
$talk = $( '.talk, [rel="discussion"]' ),
|
||||
// use the plain return value here - T128273
|
||||
title = $talk.attr( 'data-title' ),
|
||||
overlayManager = require( 'skins.minerva.scripts' ).overlayManager,
|
||||
overlayManager = mobile.OverlayManager.getSingleton(),
|
||||
// FIXME: This dependency shouldn't exist
|
||||
skin = mobile.Skin.getSingleton(),
|
||||
inTalkNamespace = false,
|
||||
|
|
Loading…
Reference in a new issue