From 3a5a0a6910597ad57d81010eb81ed90298e2aaac Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Wed, 20 Mar 2013 13:58:48 -0400 Subject: [PATCH] Remove commented code and add comment for change to Ex(). Issue #383. --- unpacked/jax/output/SVG/jax.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js index 83d525074..5b5b379d8 100644 --- a/unpacked/jax/output/SVG/jax.js +++ b/unpacked/jax/output/SVG/jax.js @@ -414,15 +414,8 @@ if (Math.abs(m) < .0006) {return "0em"} return m.toFixed(3).replace(/\.?0+$/,"") + "em"; }, - /* - * Ex: function (m) { - * m = m / this.TeX.x_height; - * if (Math.abs(m) < .0006) {return "0ex"} - * return m.toFixed(3).replace(/\.?0+$/,"") + "ex"; - * }, - */ Ex: function (m) { - m = Math.round(m / this.TeX.x_height * this.ex) / this.ex; + m = Math.round(m / this.TeX.x_height * this.ex) / this.ex; // try to use closest pixel size if (Math.abs(m) < .0006) {return "0ex"} return m.toFixed(3).replace(/\.?0+$/,"") + "ex"; },