mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-11 16:58:38 +00:00
Remove MathPlayer
* MathPlayer stopped working around IE8 Bug: T298971 Change-Id: I759a5dc61eaf27a99d952366cf9c4380748f8e82
This commit is contained in:
parent
b843a09e92
commit
c560ff0cd8
|
@ -207,13 +207,6 @@
|
|||
"mobile"
|
||||
]
|
||||
},
|
||||
"ext.math.scripts": {
|
||||
"scripts": "ext.math.js",
|
||||
"targets": [
|
||||
"desktop",
|
||||
"mobile"
|
||||
]
|
||||
},
|
||||
"ext.math.popup": {
|
||||
"es6": true,
|
||||
"packageFiles": "ext.math.popup.js",
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
/* eslint-disable no-jquery/no-global-selector */
|
||||
( function () {
|
||||
'use strict';
|
||||
|
||||
// If MathPlayer is installed we show the MathML rendering.
|
||||
if ( navigator.userAgent.indexOf( 'MathPlayer' ) > -1 ) {
|
||||
$( '.mwe-math-mathml-a11y' ).removeClass( 'mwe-math-mathml-a11y' );
|
||||
$( '.mwe-math-fallback-image-inline, .mwe-math-fallback-image-display' ).css( 'display', 'none' );
|
||||
return;
|
||||
}
|
||||
|
||||
}() );
|
|
@ -80,7 +80,6 @@ class ParserHooksHandler implements
|
|||
$parser->getOutput()->addModules( [ 'ext.math.popup' ] );
|
||||
}
|
||||
if ( $mode == MathConfig::MODE_MATHML ) {
|
||||
$parser->getOutput()->addModules( [ 'ext.math.scripts' ] );
|
||||
$marker = Parser::MARKER_PREFIX .
|
||||
'-postMath-' . sprintf( '%08X', $this->mathTagCounter++ ) .
|
||||
Parser::MARKER_SUFFIX;
|
||||
|
|
|
@ -53,7 +53,6 @@ class MathDataUpdater implements StatementDataUpdater {
|
|||
*/
|
||||
public function updateParserOutput( ParserOutput $parserOutput ) {
|
||||
if ( $this->hasMath ) {
|
||||
$parserOutput->addModules( [ 'ext.math.scripts' ] );
|
||||
$parserOutput->addModuleStyles( [ 'ext.math.styles' ] );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,7 +43,6 @@ class MathDataUpdaterTest extends MediaWikiIntegrationTestCase {
|
|||
'addModules',
|
||||
'addModuleStyles',
|
||||
] )->getMock();
|
||||
$parserOutput->expects( $this->never() )->method( 'addModules' );
|
||||
$parserOutput->expects( $this->never() )->method( 'addModuleStyles' );
|
||||
/** @var ParserOutput $parserOutput */
|
||||
$updater->updateParserOutput( $parserOutput );
|
||||
|
@ -58,7 +57,6 @@ class MathDataUpdaterTest extends MediaWikiIntegrationTestCase {
|
|||
'addModules',
|
||||
'addModuleStyles',
|
||||
] )->getMock();
|
||||
$parserOutput->expects( $this->once() )->method( 'addModules' );
|
||||
$parserOutput->expects( $this->once() )->method( 'addModuleStyles' );
|
||||
/** @var ParserOutput $parserOutput */
|
||||
$updater->updateParserOutput( $parserOutput );
|
||||
|
|
Loading…
Reference in a new issue