skins.minerva.editor: Remove remaining uses of 'skins.minerva.scripts'

We want to remove dependencies on Minerva code from this file to move
it to MobileFrontend.

* Use 'mobile.init/skin' instead of 'skins.minerva.scripts/skin'.
* Use 'mobile.startup/OverlayManager' and #getSingleton
  instead of 'skins.minerva.scripts/overlayManager'.

Both of them are just aliases for modules defined in MobileFrontend.

Bug: T198765
Change-Id: Id017dd4b6d1fe31a735613f991721c4dddafbde9
This commit is contained in:
Bartosz Dziewoński 2018-11-08 16:03:03 +01:00
parent 7bbba14ee1
commit d27a9481bc

View file

@ -2,9 +2,10 @@
var
router = require( 'mediawiki.router' ),
overlayManager = M.require( 'skins.minerva.scripts/overlayManager' ),
OverlayManager = M.require( 'mobile.startup/OverlayManager' ),
overlayManager = OverlayManager.getSingleton(),
loader = M.require( 'mobile.startup/rlModuleLoader' ),
skin = M.require( 'skins.minerva.scripts/skin' ),
skin = M.require( 'mobile.init/skin' ),
currentPage = M.getCurrentPage(),
// #ca-edit, .mw-editsection are standard MediaWiki elements
// .edit-link comes from MobileFrontend user page creation CTA