commit f64e50f9eb8171766b266e52faffa71566325509 parent 95f632a6bd3e1270bc0625b1f4a6c7600abfcea4 Author: Davide P. Cervone <dpvc@union.edu> Date: Wed, 18 Mar 2015 11:28:17 -0400 Use BBOX.updateFrom() in semantics, and handle mstyle with no children. Diffstat:
| M | unpacked/jax/output/CommonHTML/jax.js | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js @@ -2182,7 +2182,7 @@ MML.mstyle.Augment({ toCommonHTML: function (node) { node = this.CHTMLdefaultNode(node); - if (this.scriptlevel) this.CHTML.rescale(this.data[0].CHTML.rscale); + if (this.scriptlevel && this.data[0]) this.CHTML.rescale(this.data[0].CHTML.rscale); return node; } }); @@ -2281,10 +2281,10 @@ MML.semantics.Augment({ toCommonHTML: function (node) { node = this.CHTMLcreateNode(node); - if (this.data[0]) { - this.data[0].toCommonHTML(node); - MathJax.Hub.Insert(this.data[0].CHTML||{},this.CHTML); - } + if (this.data[0]) { + this.data[0].toCommonHTML(node); + this.CHTML.updateFrom(this.data[0].CHTML); + } return node; } });