Drop mobile.init dependency
Depends-On: If0de2d74139131be592d8edc2dbf063e9b98860c Bug: T216537 Change-Id: I4b8011f5b73000a01d9cea032a6287b24b10f6ec
This commit is contained in:
parent
933dc0e370
commit
0c5ca96031
|
@ -4,7 +4,7 @@
|
||||||
ToggleList = require( '../../components/ToggleList/ToggleList.js' ),
|
ToggleList = require( '../../components/ToggleList/ToggleList.js' ),
|
||||||
downloadPageAction = require( './downloadPageAction.js' ).downloadPageAction,
|
downloadPageAction = require( './downloadPageAction.js' ).downloadPageAction,
|
||||||
Icon = mobile.Icon,
|
Icon = mobile.Icon,
|
||||||
skin = M.require( 'mobile.init/skin' ),
|
skin = mobile.Skin.getSingleton(),
|
||||||
/** The top level menu. */
|
/** The top level menu. */
|
||||||
toolbarSelector = '.page-actions-menu',
|
toolbarSelector = '.page-actions-menu',
|
||||||
/** The secondary overflow submenu component container. */
|
/** The secondary overflow submenu component container. */
|
||||||
|
|
|
@ -7,9 +7,10 @@
|
||||||
*/
|
*/
|
||||||
module.exports = function () {
|
module.exports = function () {
|
||||||
var M = mw.mobileFrontend,
|
var M = mw.mobileFrontend,
|
||||||
skin = M.require( 'mobile.init/skin' ),
|
mobile = M.require( 'mobile.startup' ),
|
||||||
|
skin = mobile.Skin.getSingleton(),
|
||||||
mainMenu = require( './menu.js' ),
|
mainMenu = require( './menu.js' ),
|
||||||
toast = M.require( 'mobile.startup' ).toast;
|
toast = mobile.toast;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Close navigation if skin is tapped
|
* Close navigation if skin is tapped
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
title = $talk.attr( 'data-title' ),
|
title = $talk.attr( 'data-title' ),
|
||||||
overlayManager = require( 'skins.minerva.scripts' ).overlayManager,
|
overlayManager = require( 'skins.minerva.scripts' ).overlayManager,
|
||||||
// FIXME: This dependency shouldn't exist
|
// FIXME: This dependency shouldn't exist
|
||||||
skin = M.require( 'mobile.init/skin' ),
|
skin = mobile.Skin.getSingleton(),
|
||||||
inTalkNamespace = false,
|
inTalkNamespace = false,
|
||||||
pageTitle, talkTitle, talkNs, pageNs;
|
pageTitle, talkTitle, talkNs, pageNs;
|
||||||
|
|
||||||
|
|
|
@ -441,7 +441,6 @@
|
||||||
"skins.minerva.mainMenu.icons",
|
"skins.minerva.mainMenu.icons",
|
||||||
"skins.minerva.mainMenu.styles",
|
"skins.minerva.mainMenu.styles",
|
||||||
"jquery.cookie",
|
"jquery.cookie",
|
||||||
"mobile.init",
|
|
||||||
"skins.minerva.icons.images.scripts",
|
"skins.minerva.icons.images.scripts",
|
||||||
"mediawiki.util",
|
"mediawiki.util",
|
||||||
"mediawiki.router",
|
"mediawiki.router",
|
||||||
|
|
Loading…
Reference in New Issue