commit 214a23050495261d8dafb8b77641cebd9da59bf6 parent 3ebb1537634d0f703faf40ca82d129bf1613132b Author: Davide P. Cervone <dpvc@union.edu> Date: Tue, 6 May 2014 07:00:29 -0400 Make sure svg is defined before using its width Diffstat:
| M | unpacked/jax/output/SVG/autoload/multiline.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/unpacked/jax/output/SVG/autoload/multiline.js b/unpacked/jax/output/SVG/autoload/multiline.js @@ -336,7 +336,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () { if (state.last && svg.X) {svg.X = 0} line.Add(svg,line.w,0,true); } - if (state.first && svg.w === 0) {state.nextIsFirst = true} + if (state.first && svg && svg.w === 0) {state.nextIsFirst = true} else {delete state.nextIsFirst} } });