Skip to content

Commit

Permalink
Make variables local in legacy code. (mathjax/MathJax#2748)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Feb 2, 2022
1 parent 611a48c commit 195838b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ts/input/asciimath/mathjax2/legacy/jax/element/MmlNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}
for (var i = 0, m = names.length; i < m; i++) {
if (copy[names[i]] === 1 && !defaults.hasOwnProperty(names[i])) continue;
value = (this.attr||{})[names[i]];
var value = (this.attr||{})[names[i]];
if (value == null) value = this[names[i]];
if (value === 'true' || value === 'false') value = (value === 'true');
if (value != null) node.attributes.set(names[i],value);
Expand Down
8 changes: 4 additions & 4 deletions ts/input/asciimath/mathjax2/legacy/jax/input/AsciiMath/jax.js
Original file line number Diff line number Diff line change
Expand Up @@ -1391,10 +1391,10 @@ asciimath.translate = translate;
*
******************************************************************/

showasciiformulaonhover = false;
mathfontfamily = "";
mathcolor = "";
mathfontsize = "";
var showasciiformulaonhover = false;
var mathfontfamily = "";
var mathcolor = "";
var mathfontsize = "";

//
// Remove remapping of mathvariants to plane1 (MathJax handles that)
Expand Down

0 comments on commit 195838b

Please sign in to comment.