Skip to content

Commit

Permalink
Compensate for removed MathEvents.js. Resolves issues #85, #66, and #82.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Mar 30, 2015
1 parent 209e09d commit 0b4b10f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mj-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ function ConfigureMathJax() {

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

//
// When creating stylesheets, no need to wait for them
Expand Down
4 changes: 4 additions & 0 deletions lib/mj-single.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ function ConfigureMathJax() {

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

//
// When creating stylesheets, no need to wait for them
Expand Down

0 comments on commit 0b4b10f

Please sign in to comment.