From ba2216639956591c763959e8a7b3686a2e0aa3fd Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 4 Jul 2016 12:56:53 -0400 Subject: [PATCH] handle case where options are not passed. --- unpacked/jax/output/CommonHTML/jax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index ac199540a..a2a9dc153 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -2610,7 +2610,7 @@ } if (this.CHTMLlineBreaks()) { this.CHTMLmultiline(node); - if (options.autowidth) node.style.width = ""; + if ((options||{}).autowidth) node.style.width = ""; } else { if (hasNegative && bbox.w) node.style.width = CHTML.Em(Math.max(0,bbox.w)); if (bbox.w < 0) node.style.marginRight = CHTML.Em(bbox.w);