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:
Davide P. Cervone 2014-02-07 09:39:56 -05:00
parent 3b35ca9e16
commit f1f109b586
2 changed files with 2 additions and 2 deletions

View File

@ -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
//

View File

@ -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
//