fred-wang / TeXZilla

LALR Javascript LaTeX-to-MathML converter compatible with Unicode
http://fred-wang.github.io/TeXZilla/
130 stars 21 forks source link

The minified version declares undesired global variables #40

Closed fred-wang closed 9 years ago

fred-wang commented 10 years ago

After application of Google Closure Compiler, new variables h, n, p and u are defined in TeXZilla-min.js. The content of the file should be wrapped in a function() to prevent these variables from being global. Also, the "use strict" mode should only apply to that function scope to avoid concatenation problem.