Skip to content

Commit 22a626b

Browse files
authored
Merge pull request #711 from mathjax/revert-693-issue2678
Revert "Clear the stylesheet when used in a new MathDocument. (mathjax/MathJax#2678)"
2 parents e5844ea + 08f0596 commit 22a626b

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

ts/output/chtml.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,6 @@ CommonOutputJax<N, T, D, CHTMLWrapper<N, T, D>, CHTMLWrapperFactory<N, T, D>, CH
140140
this.font.adaptiveCSS(this.options.adaptiveCSS);
141141
}
142142

143-
/**
144-
* @override
145-
*/
146-
public initialize() {
147-
this.chtmlStyles = null;
148-
}
149-
150143
/**
151144
* @override
152145
*/

ts/output/svg.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,8 @@ CommonOutputJax<N, T, D, SVGWrapper<N, T, D>, SVGWrapperFactory<N, T, D>, SVGFon
135135
*/
136136
public initialize() {
137137
if (this.options.fontCache === 'global') {
138-
this.clearFontCache();
138+
this.fontCache.clearCache();
139139
}
140-
this.svgStyles = null;
141140
}
142141

143142
/**

0 commit comments

Comments
 (0)