Remove redundent check (if span is null, then div will be null, so only need to check for div). Issue #730.
This commit is contained in:
parent
3b35ca9e16
commit
f1f109b586
|
@ -580,7 +580,7 @@
|
|||
var jax = script.MathJax.elementJax, math = jax.root,
|
||||
span = document.getElementById(jax.inputID+"-Frame"),
|
||||
div = (jax.HTMLCSS.display ? (span||{}).parentNode : span);
|
||||
if (!span || !div) return;
|
||||
if (!div) return;
|
||||
//
|
||||
// Set the font metrics
|
||||
//
|
||||
|
|
|
@ -290,7 +290,7 @@
|
|||
var jax = script.MathJax.elementJax, math = jax.root,
|
||||
span = document.getElementById(jax.inputID+"-Frame"),
|
||||
div = (jax.SVG.display ? (span||{}).parentNode : span);
|
||||
if (!span || !div) return;
|
||||
if (!div) return;
|
||||
//
|
||||
// Set the font metrics
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue
Block a user