commit 73070cc7497e874b1cd84da2311cb64fa2cd7307 parent 86ad73c8bdca9cbe1b26b32ab5c3effb289e82e6 Author: Sean Hogan <shogun70@gmail.com> Date: Fri, 15 Oct 2010 15:59:29 +1100 issue #3: MathJax init fail in IE9 (IE7 mode) Diffstat:
| M | mathjax/unpacked/MathJax.js | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/mathjax/unpacked/MathJax.js b/mathjax/unpacked/MathJax.js @@ -247,7 +247,10 @@ MathJax.version = "1.0.5"; // var EVAL = function (code) {return eval.call(window,code)} EVAL("var __TeSt_VaR__ = 1"); // check if it works in global context - if (window.__TeSt_VaR__) {delete window.__TeSt_VaR__} else { + if (window.__TeSt_VaR__) { + try { delete window.__TeSt_VaR__; } // NOTE IE9 throws when in IE7 mode + catch (error) { window.__TeSt_VaR__ = null; } + } else { if (window.execScript) { // IE EVAL = function (code) {