Skip to content

Commit 737fbc0

Browse files
committed
Fix var issues (noted by YUI compression)
1 parent e4982cb commit 737fbc0

File tree

1 file changed

+4
-4
lines changed
  • unpacked/jax/output/HTML-CSS

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@
815815
//
816816
// Adjust margins to prevent overlaps at the edges
817817
//
818-
var child = span.firstChild.firstChild.style;
818+
child = span.firstChild.firstChild.style;
819819
if (bbox.H != null && bbox.H > bbox.h)
820820
{child.marginTop = HTMLCSS.Em(bbox.H-Math.max(bbox.h,HTMLCSS.FONTDATA.lineH))}
821821
if (bbox.D != null && bbox.D > bbox.d)
@@ -1737,9 +1737,9 @@
17371737
for (var i = 0, m = this.data.length; i < m; i++)
17381738
{if (this.data[i]) {this.data[i].toHTML(span)}}
17391739
var stretchy = this.HTMLcomputeBBox(span);
1740-
var h = span.bbox.h, d = span.bbox.d, stretched = false;
1740+
var h = span.bbox.h, d = span.bbox.d, stretched = false, bbox;
17411741
for (i = 0, m = stretchy.length; i < m; i++) {
1742-
var bbox = stretchy[i].HTMLspanElement().bbox;
1742+
bbox = stretchy[i].HTMLspanElement().bbox;
17431743
if (stretchy[i].forceStretch || bbox.h !== h || bbox.d !== d)
17441744
{stretchy[i].HTMLstretchV(span,h,d); stretched = true}
17451745
}
@@ -1749,7 +1749,7 @@
17491749
this.HTMLhandleColor(span);
17501750
if (this.data.length === 1 && this.data[0]) {
17511751
// copy skew data from accented character
1752-
var bbox = this.data[0].HTMLspanElement().bbox;
1752+
bbox = this.data[0].HTMLspanElement().bbox;
17531753
if (bbox.skew) span.bbox.skew = bbox.skew;
17541754
}
17551755
return span;

0 commit comments

Comments
 (0)