From cd12ba63d94f41f9e623af8b17c5849dc4925c98 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Wed, 8 Jul 2015 15:30:49 -0400 Subject: [PATCH] Make chunking parameters only be used when fast preview is enabled. --- unpacked/extensions/CHTML-preview.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/unpacked/extensions/CHTML-preview.js b/unpacked/extensions/CHTML-preview.js index bb2daa97d..e79d56797 100644 --- 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;