From c59db4a65dd3e5bd29ba435b49cb8844e89e80ee Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Wed, 31 Aug 2016 11:42:34 -0400 Subject: [PATCH] Don't need 'var' twice for these variables. --- unpacked/jax/output/CommonHTML/autoload/mtable.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unpacked/jax/output/CommonHTML/autoload/mtable.js b/unpacked/jax/output/CommonHTML/autoload/mtable.js index 63ea0db2e..03c809288 100644 --- a/unpacked/jax/output/CommonHTML/autoload/mtable.js +++ b/unpacked/jax/output/CommonHTML/autoload/mtable.js @@ -93,8 +93,8 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { CHTMLgetBoxSizes: function (values,state) { var LH = CHTML.FONTDATA.lineH * values.useHeight, LD = CHTML.FONTDATA.lineD * values.useHeight; - var H = [], D = [], W = [], J = -1; - for (var i = 0, m = this.data.length; i < m; i++) { + var H = [], D = [], W = [], J = -1, i, m; + for (i = 0, m = this.data.length; i < m; i++) { var row = this.data[i], s = (row.type === "mtr" ? 0 : LABEL); H[i] = LH; D[i] = LD; for (var j = s, M = row.data.length + s; j < M; j++) { @@ -109,7 +109,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { state.HD = true; var HH = Math.max.apply(Math,H); var DD = Math.max.apply(Math,D); - for (var i = 0, m = H.length; i < m; i++) {H[i] = HH; D[i] = DD} + for (i = 0, m = H.length; i < m; i++) {H[i] = HH; D[i] = DD} } state.H = H; state.D = D; state.W = W, state.J = J; },