Skip to content

Commit 38a9a12

Browse files
committed
Adjust how options are handled, as per Volker's comments.
1 parent ba22166 commit 38a9a12

File tree

1 file changed

+2
-1
lines changed
  • unpacked/jax/output/CommonHTML

1 file changed

+2
-1
lines changed

unpacked/jax/output/CommonHTML/jax.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2602,6 +2602,7 @@
26022602

26032603
MML.mrow.Augment({
26042604
toCommonHTML: function (node,options) {
2605+
options = options || {};
26052606
node = this.CHTMLdefaultNode(node);
26062607
var bbox = this.CHTML, H = bbox.h, D = bbox.d, hasNegative;
26072608
for (var i = 0, m = this.data.length; i < m; i++) {
@@ -2610,7 +2611,7 @@
26102611
}
26112612
if (this.CHTMLlineBreaks()) {
26122613
this.CHTMLmultiline(node);
2613-
if ((options||{}).autowidth) node.style.width = "";
2614+
if (options.autowidth) node.style.width = "";
26142615
} else {
26152616
if (hasNegative && bbox.w) node.style.width = CHTML.Em(Math.max(0,bbox.w));
26162617
if (bbox.w < 0) node.style.marginRight = CHTML.Em(bbox.w);

0 commit comments

Comments
 (0)