Skip to content

Commit

Permalink
Merge pull request #1016 from mathjax/issue3128
Browse files Browse the repository at this point in the history
Fix default option list to {}.  (mathjax/MathJax#3128)
  • Loading branch information
dpvc authored Nov 20, 2023
2 parents b27f7d8 + b4eee7f commit e196c18
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ts/output/chtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ CommonOutputJax<
* @override
* @constructor
*/
constructor(options: OptionList = null) {
constructor(options: OptionList = {}) {
super(options, ChtmlWrapperFactory as any, DefaultFont);
this.font.adaptiveCSS(this.options.adaptiveCSS);
this.wrapperUsage = new Usage<string>();
Expand Down
2 changes: 1 addition & 1 deletion ts/output/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export abstract class CommonOutputJax<
* @param {FC} defaultFont The default FontData constructor
* @constructor
*/
constructor(options: OptionList = null,
constructor(options: OptionList = {},
defaultFactory: typeof CommonWrapperFactory = null,
defaultFont: FC = null) {
const [fontClass, font] = (options.fontData instanceof FontData ?
Expand Down
2 changes: 1 addition & 1 deletion ts/output/svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ CommonOutputJax<
* @override
* @constructor
*/
constructor(options: OptionList = null) {
constructor(options: OptionList = {}) {
super(options, SvgWrapperFactory as any, DefaultFont);
this.fontCache = new FontCache(this);
}
Expand Down

0 comments on commit e196c18

Please sign in to comment.