Skip to content

Commit

Permalink
Revert "Clear the stylesheet when used in a new MathDocument. (mathja…
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed May 24, 2021
1 parent e5844ea commit 08f0596
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions ts/output/chtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,6 @@ CommonOutputJax<N, T, D, CHTMLWrapper<N, T, D>, CHTMLWrapperFactory<N, T, D>, CH
this.font.adaptiveCSS(this.options.adaptiveCSS);
}

/**
* @override
*/
public initialize() {
this.chtmlStyles = null;
}

/**
* @override
*/
Expand Down
3 changes: 1 addition & 2 deletions ts/output/svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ CommonOutputJax<N, T, D, SVGWrapper<N, T, D>, SVGWrapperFactory<N, T, D>, SVGFon
*/
public initialize() {
if (this.options.fontCache === 'global') {
this.clearFontCache();
this.fontCache.clearCache();
}
this.svgStyles = null;
}

/**
Expand Down

0 comments on commit 08f0596

Please sign in to comment.