Make sure measuring spans are removed from all elements (including the ones that were changed). Resolves second half of issue #576.
This commit is contained in:
parent
7a97969104
commit
2c5ecf6303
|
@ -28,7 +28,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function (HUB,AJAX) {
|
(function (HUB,AJAX) {
|
||||||
var VERSION = "2.3";
|
var VERSION = "2.3.1";
|
||||||
|
|
||||||
var CONFIG = MathJax.Hub.CombineConfig("MatchWebFonts",{
|
var CONFIG = MathJax.Hub.CombineConfig("MatchWebFonts",{
|
||||||
matchFor: {
|
matchFor: {
|
||||||
|
@ -98,9 +98,10 @@
|
||||||
//
|
//
|
||||||
// Remove markers
|
// Remove markers
|
||||||
//
|
//
|
||||||
|
scripts = scripts.concat(size); // some scripts have been moved to the size array
|
||||||
for (i = 0, m = scripts.length; i < m; i++) {
|
for (i = 0, m = scripts.length; i < m; i++) {
|
||||||
script = scripts[i];
|
script = scripts[i];
|
||||||
if (script.parentNode && script.MathJax.elementJax) {
|
if (script && script.parentNode && script.MathJax.elementJax) {
|
||||||
script.parentNode.removeChild(script.previousSibling);
|
script.parentNode.removeChild(script.previousSibling);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -164,6 +165,7 @@
|
||||||
//
|
//
|
||||||
// Remove markers
|
// Remove markers
|
||||||
//
|
//
|
||||||
|
scripts = scripts.concat(size); // some scripts have been moved to the size array
|
||||||
for (i = 0, m = scripts.length; i < m; i++) {
|
for (i = 0, m = scripts.length; i < m; i++) {
|
||||||
script = scripts[i];
|
script = scripts[i];
|
||||||
if (script.parentNode && script.MathJax.elementJax) {
|
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");
|
AJAX.loadComplete("[MathJax]/extensions/MatchWebFonts.js");
|
||||||
|
|
||||||
})(MathJax.Hub,MathJax.Ajax);
|
})(MathJax.Hub,MathJax.Ajax);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user