Remove commented code and add comment for change to Ex(). Issue #383.

This commit is contained in:
Davide P. Cervone 2013-03-20 13:58:48 -04:00
parent caa965d23d
commit 3a5a0a6910

View File

@ -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";
},