commit cd12ba63d94f41f9e623af8b17c5849dc4925c98
parent a154d7ded16eb9b33f721426ba846984d1d75123
Author: Davide P. Cervone <dpvc@union.edu>
Date: Wed, 8 Jul 2015 15:30:49 -0400
Make chunking parameters only be used when fast preview is enabled.
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/unpacked/extensions/CHTML-preview.js b/unpacked/extensions/CHTML-preview.js
@@ -31,7 +31,7 @@
var SETTINGS = HUB.config.menuSettings;
var CHTMLpreview = MathJax.Extension["CHTML-preview"] = {
- version: "2.5.2",
+ version: "2.5.3",
//
// Configuration for the chunking of the main output
@@ -49,16 +49,13 @@
// Ajust the chunking of the output jax
//
Config: function () {
- HUB.Config({
- "HTML-CSS": this.config.Chunks,
- SVG: this.config.Chunks
- });
MathJax.Ajax.Styles({".MathJax_Preview .MJXc-math":{color:this.config.color}});
var update, delay, style, done, saved;
var config = this.config;
if (!config.disabled && SETTINGS.CHTMLpreview == null)
HUB.Config({menuSettings:{CHTMLpreview:true}});
+ if (SETTINGS.CHTMLpreview) HUB.Config({"HTML-CSS":config.Chunks, SVG:config.Chunks});
HUB.Register.MessageHook("Begin Math Output",function () {
if (!done && SETTINGS.CHTMLpreview && SETTINGS.renderer !== "CommonHTML") {
update = HUB.processUpdateTime; delay = HUB.processUpdateDelay;