www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 25d6ce9f654dc90d156583fb50b7e2612e17e39c
parent 73f58abb43a3fca17a9663d8546dedbd27e0f68d
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Fri,  7 Feb 2014 10:06:13 -0500

Merge branch 'issue730' into develop.  Issue #730.

Diffstat:
Munpacked/jax/output/HTML-CSS/jax.js | 3++-
Munpacked/jax/output/NativeMML/jax.js | 4++--
Munpacked/jax/output/SVG/jax.js | 3++-
3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js @@ -590,7 +590,8 @@ // var jax = script.MathJax.elementJax, math = jax.root, span = document.getElementById(jax.inputID+"-Frame"), - div = (jax.HTMLCSS.display ? span.parentNode : span); + div = (jax.HTMLCSS.display ? (span||{}).parentNode : span); + if (!div) return; // // Set the font metrics // diff --git a/unpacked/jax/output/NativeMML/jax.js b/unpacked/jax/output/NativeMML/jax.js @@ -289,8 +289,8 @@ // Get the jax and the container and set the size // var jax = script.MathJax.elementJax, math = jax.root; - var span = document.getElementById(jax.inputID+"-Frame"), - container = span.firstChild, mspan = container.firstChild; + var span = document.getElementById(jax.inputID+"-Frame"); if (!span) return; + var container = span.firstChild, mspan = container.firstChild; this.ex = jax.NativeMML.ex || this.defaultEx; this.scale = jax.NativeMML.scale || 1; if (this.scale !== 1) {span.style.fontSize = jax.NativeMML.fontSize} diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js @@ -295,7 +295,8 @@ // var jax = script.MathJax.elementJax, math = jax.root, span = document.getElementById(jax.inputID+"-Frame"), - div = (jax.SVG.display ? span.parentNode : span); + div = (jax.SVG.display ? (span||{}).parentNode : span); + if (!div) return; // // Set the font metrics //