Skip to content

Commit a143e39

Browse files
committed
Merge pull request mathjax#86 from mathjax/issue85
Compensate for removed MathEvents.js.
2 parents 209e09d + 0b4b10f commit a143e39

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

lib/mj-page.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ function ConfigureMathJax() {
158158

159159
delete MathJax.Hub.config.styles; // don't need any styles
160160
MathJax.Hub.Startup.MenuZoom = function () {}; // don't load menu or zoom code
161+
MathJax.Extension.MathEvents = {
162+
Event:{}, Touch:{}, Hover:{} // fake structure to avid errors
163+
};
164+
MathJax.Ajax.loaded[MathJax.Ajax.fileURL("[MathJax]/extensions/MathEvents.js")] = true;
161165

162166
//
163167
// When creating stylesheets, no need to wait for them

lib/mj-single.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ function ConfigureMathJax() {
159159

160160
delete MathJax.Hub.config.styles; // don't need any styles
161161
MathJax.Hub.Startup.MenuZoom = function () {}; // don't load menu or zoom code
162+
MathJax.Extension.MathEvents = {
163+
Event:{}, Touch:{}, Hover:{} // fake structure to avid errors
164+
};
165+
MathJax.Ajax.loaded[MathJax.Ajax.fileURL("[MathJax]/extensions/MathEvents.js")] = true;
162166

163167
//
164168
// When creating stylesheets, no need to wait for them

0 commit comments

Comments
 (0)