Skip to content

Commit 298a4ea

Browse files
committed
Localize some variables that where accidentally global. Resolves issue #1806.
1 parent 4722c86 commit 298a4ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

unpacked/jax/output/CommonHTML/autoload/mtable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () {
220220
for (var j = 0, M = row.length; j < M; j++) {
221221
var s = (rdata.type === "mtr" ? 0 : LABEL);
222222
var mtd = rdata.data[j-s] || {CHTML: CHTML.BBOX.zero()};
223-
cell = row[j].style; cbox = mtd.CHTML;
223+
var cell = row[j].style; cbox = mtd.CHTML;
224224
//
225225
// Space and borders between columns
226226
//

unpacked/jax/output/CommonHTML/jax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@
394394

395395
preTranslate: function (state) {
396396
var scripts = state.jax[this.id], i, m = scripts.length,
397-
script, prev, node, test, span, jax, ex, em;
397+
script, prev, node, test, span, jax, ex, em, scale;
398398
//
399399
// Get linebreaking information
400400
//
@@ -1326,7 +1326,7 @@
13261326
if (scale*cbox.b - y > this.b) this.b = scale*cbox.b - y;
13271327
},
13281328
append: function (cbox) {
1329-
scale = cbox.rscale; var x = this.w;
1329+
var scale = cbox.rscale; var x = this.w;
13301330
if (x + scale*cbox.r > this.r) this.r = x + scale*cbox.r;
13311331
if (x + scale*cbox.l < this.l) this.l = x + scale*cbox.l;
13321332
this.w += scale*(cbox.w+(cbox.L||0)+(cbox.R||0)) ;

0 commit comments

Comments
 (0)