Skip to content

Commit 1424afb

Browse files
committed
Fix up variable issues identified by packer
1 parent ad0d776 commit 1424afb

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

unpacked/extensions/MatchWebFonts.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
fontCheckTimeout: 15 * 1000, // how long to keep looking for fonts (15 seconds)
4141
});
4242

43-
var MATCH = MathJax.Extension.MatchWebFonts = {
43+
MathJax.Extension.MatchWebFonts = {
4444
version: VERSION,
4545
config: CONFIG
4646
};
@@ -81,7 +81,6 @@
8181
for (i = 0, m = scripts.length; i < m; i++) {
8282
script = scripts[i]; if (!script.parentNode) continue; retry = true;
8383
var jax = script.MathJax.elementJax; if (!jax) continue;
84-
var span = document.getElementById(jax.inputID+"-Frame");
8584
//
8685
// Check if ex or mex has changed
8786
//
@@ -153,13 +152,12 @@
153152
for (i = 0, m = scripts.length; i < m; i++) {
154153
script = scripts[i]; if (!script.parentNode) continue; retry = true;
155154
var jax = script.MathJax.elementJax; if (!jax) continue;
156-
var span = document.getElementById(jax.inputID+"-Frame");
157155
//
158156
// Check if ex or mex has changed
159157
//
160158
var test = script.previousSibling;
161159
var ex = test.firstChild.offsetHeight/60;
162-
if (ex === 0 || ex === "NaN") {ex = this.defaultEx; em = this.defaultEm}
160+
if (ex === 0 || ex === "NaN") {ex = this.defaultEx}
163161
if (ex !== jax.SVG.ex) {size.push(script); scripts[i] = {}}
164162
}
165163
//
@@ -259,7 +257,7 @@
259257
// Check widths of mtd elements
260258
//
261259
if (math.MathJaxMtds) {
262-
for (j = 0, n = math.MathJaxMtds.length; j < n; j++) {
260+
for (var j = 0, n = math.MathJaxMtds.length; j < n; j++) {
263261
if (!math.MathJaxMtds[j].parentNode) continue;
264262
if (newEx || math.MathJaxMtds[j].firstChild.scrollWidth !== jax.mtds[j]) {
265263
jax.mtds[j] = math.MathJaxMtds[j].firstChild.scrollWidth;

unpacked/extensions/MathZoom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
overlay.style.display = "";
259259
},
260260
findContainer: function (obj) {
261-
var obj = obj.parentNode;
261+
obj = obj.parentNode;
262262
while (obj.parentNode && obj !== document.body && ZOOM.getOverflow(obj) === "visible")
263263
{obj = obj.parentNode}
264264
return obj;

unpacked/jax/input/TeX/jax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@
17211721
if (!cmd) {TEX.Error(["UnknownEnv","Unknown environment '%1'",env])}
17221722
if (!(cmd instanceof Array)) {cmd = [cmd]}
17231723
var end = (cmd[1] instanceof Array ? cmd[1][0] : cmd[1]);
1724-
mml = STACKITEM.begin().With({name: env, end: end, parse:this});
1724+
var mml = STACKITEM.begin().With({name: env, end: end, parse:this});
17251725
if (name === "\\end") {
17261726
if (!isEnd && cmd[1] instanceof Array && this[cmd[1][1]]) {
17271727
mml = this[cmd[1][1]].apply(this,[mml].concat(cmd.slice(2)));

unpacked/jax/output/HTML-CSS/autoload/mglyph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
6868
this.Append(err); err.toHTML(span); this.data.pop();
6969
span.bbox = err.HTMLspanElement().bbox;
7070
} else {
71-
var mu = this.HTMLgetMu(span), size;
71+
var mu = this.HTMLgetMu(span);
7272
img = HTMLCSS.addElement(span,"img",{isMathJax:true, src:values.src, alt:values.alt, title:values.alt});
7373
if (values.width) {
7474
img.style.width = HTMLCSS.Em(HTMLCSS.length2em(values.width,mu,this.img.img.width/HTMLCSS.em));

unpacked/jax/output/HTML-CSS/autoload/multiline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,8 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
570570
},
571571

572572
HTMLmoveLine: function (start,end,span,state,values) {
573-
var SPAN = this.HTMLspanElement(), data = SPAN.bbox, base = data,
574-
stack = SPAN.firstChild,dx, BOX = {};
573+
var SPAN = this.HTMLspanElement(), data = SPAN.bbox,
574+
stack = SPAN.firstChild, BOX = {};
575575
if (HTMLCSS.msiePaddingWidthBug) {stack = stack.nextSibling}
576576
var box = stack.firstChild;
577577

0 commit comments

Comments
 (0)