Drop mobile.init dependency

Depends-On: If0de2d74139131be592d8edc2dbf063e9b98860c
Bug: T216537
Change-Id: I4b8011f5b73000a01d9cea032a6287b24b10f6ec
This commit is contained in:
jdlrobson 2019-07-17 11:14:23 -07:00 committed by Jdlrobson
parent 933dc0e370
commit 0c5ca96031
4 changed files with 5 additions and 5 deletions

View File

@ -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. */

View File

@ -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

View File

@ -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;

View File

@ -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",