www

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

commit 2c5ecf630336caa27c8c2c2bbabdcf442ac4ae61
parent 7a979691044778f74306783b08a9b262ee8a1757
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Thu,  6 Feb 2014 11:54:26 -0500

Make sure measuring spans are removed from all elements (including the ones that were changed).  Resolves second half of issue #576.

Diffstat:
Munpacked/extensions/MatchWebFonts.js | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/unpacked/extensions/MatchWebFonts.js b/unpacked/extensions/MatchWebFonts.js @@ -28,7 +28,7 @@ */ (function (HUB,AJAX) { - var VERSION = "2.3"; + var VERSION = "2.3.1"; var CONFIG = MathJax.Hub.CombineConfig("MatchWebFonts",{ matchFor: { @@ -98,9 +98,10 @@ // // Remove markers // + scripts = scripts.concat(size); // some scripts have been moved to the size array for (i = 0, m = scripts.length; i < m; i++) { script = scripts[i]; - if (script.parentNode && script.MathJax.elementJax) { + if (script && script.parentNode && script.MathJax.elementJax) { script.parentNode.removeChild(script.previousSibling); } } @@ -164,6 +165,7 @@ // // Remove markers // + scripts = scripts.concat(size); // some scripts have been moved to the size array for (i = 0, m = scripts.length; i < m; i++) { script = scripts[i]; if (script.parentNode && script.MathJax.elementJax) { @@ -303,7 +305,7 @@ }); }); - HUB.Startup.signal.Post("MathWebFont Extension Ready"); + HUB.Startup.signal.Post("MatchWebFonts Extension Ready"); AJAX.loadComplete("[MathJax]/extensions/MatchWebFonts.js"); })(MathJax.Hub,MathJax.Ajax);