From 66ebcf2c460e174e448c8893c33d80131163e39a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Thu, 21 Mar 2013 17:32:46 +0100 Subject: [PATCH] Fix a processing error when an empty is used as a fence. #359 --- unpacked/jax/input/MathML/jax.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/input/MathML/jax.js b/unpacked/jax/input/MathML/jax.js index 4fb758992..144b17bab 100644 --- a/unpacked/jax/input/MathML/jax.js +++ b/unpacked/jax/input/MathML/jax.js @@ -164,8 +164,8 @@ var first = mml.data[0], last = mml.data[mml.data.length-1]; if (first.type === "mo" && first.fence && last.type === "mo" && last.fence) { - mml.open = first.data[0].data[0]; - mml.close = last.data[0].data[0]; + if (first.data[0]) {mml.open = first.data[0].data[0]} + if (last.data[0]) {mml.close = last.data[0].data[0]} } } },