From 7f6db28dd6f31eb378a519e9e37d691e3d45b0d3 Mon Sep 17 00:00:00 2001 From: Physikerwelt Date: Tue, 19 Aug 2014 19:13:35 +0000 Subject: [PATCH] Revert "Added a hook for modifications to MathJax" This reverts commit 0a8fbac418987b81993a4d41e52652096d90d3bc. Change-Id: If4442d07e4d82e1f45211bb2b331221c62fadbb8 --- Math.php | 4 ---- modules/ext.math.mathjax.enabler.js | 2 -- 2 files changed, 6 deletions(-) diff --git a/Math.php b/Math.php index 7773ca4e8..d5d295e0a 100644 --- a/Math.php +++ b/Math.php @@ -465,10 +465,6 @@ $wgResourceModules += array( 'scripts' => array( 'Fraktur/Bold/BasicLatin.js', 'Fraktur/Bold/Other.js', 'Fraktur/Bold/PUA.js', 'Fraktur/Regular/BasicLatin.js', 'Fraktur/Regular/Other.js', 'Fraktur/Regular/PUA.js', 'SansSerif/Bold/BasicLatin.js', 'SansSerif/Bold/CombDiacritMarks.js', 'SansSerif/Bold/Other.js', 'SansSerif/Italic/BasicLatin.js', 'SansSerif/Italic/CombDiacritMarks.js', 'SansSerif/Italic/Other.js', 'SansSerif/Regular/BasicLatin.js', 'SansSerif/Regular/CombDiacritMarks.js', 'SansSerif/Regular/Other.js', 'Script/Regular/BasicLatin.js', 'Typewriter/Regular/BasicLatin.js', 'Typewriter/Regular/CombDiacritMarks.js', 'Typewriter/Regular/Other.js' ) ) + $moduleTemplateSVG ); -$wgResourceModules += array( - 'ext.math.mathjax.customize' => array( - 'dependencies' => 'ext.math.mathjax.mathjax' ) -); $moduleTemplate = array( 'localBasePath' => __DIR__ . '/modules', diff --git a/modules/ext.math.mathjax.enabler.js b/modules/ext.math.mathjax.enabler.js index be024a3ee..ec56d1e48 100644 --- a/modules/ext.math.mathjax.enabler.js +++ b/modules/ext.math.mathjax.enabler.js @@ -103,8 +103,6 @@ mathJax.Init = function () { // Configure MathJax MathJax.Hub.Config( mathJax.config ); - // This hook can be used to override MathJax configuration. - mw.loader.load( 'ext.math.mathjax.customize' ); MathJax.OutputJax.fontDir = mw.config.get( 'wgExtensionAssetsPath' ) + '/Math/modules/MathJax/fonts'; // Redefine MathJax.Hub.Startup.Jax