Split out some internal methods in QuorumLockManager for readability
[mediawiki.git] / resources / src / oojs-ui-local.js
blob017d9fb073425884069ba30c876253e7f4eb20af
1 ( function ( mw ) {
2 var isMobile;
3 // Connect OOjs UI to MediaWiki's localisation system
4 OO.ui.getUserLanguages = mw.language.getFallbackLanguageChain;
5 OO.ui.msg = mw.msg;
6 // Connect OOjs UI's deprecation warnings to MediaWiki's logging system
7 OO.ui.warnDeprecation = function ( message ) {
8 mw.track( 'mw.deprecate', 'oojs-ui' );
9 mw.log.warn( message );
11 OO.ui.isMobile = function () {
12 if ( isMobile === undefined ) {
13 isMobile = mw.config.get( 'skin' ) === 'minerva';
15 return isMobile;
17 }( mediaWiki ) );