Skip to content

Commit 44be039

Browse files
committed
naming lazyLoadMathJax
1 parent 8b52a6d commit 44be039

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/dash-core-components/src/components/Graph.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
44
import {asyncDecorator} from '@plotly/dash-component-plugins';
55
import graph from '../utils/LazyLoader/graph';
66
import plotly from '../utils/LazyLoader/plotly';
7-
import mathjax from '../utils/LazyLoader/mathjax';
7+
import lazyLoadMathJax from '../utils/LazyLoader/mathjax';
88
import {
99
privatePropTypes,
1010
privateDefaultProps,
@@ -128,7 +128,7 @@ const RealPlotlyGraph = asyncDecorator(PlotlyGraph, () =>
128128
Promise.all([
129129
graph(),
130130
plotly(),
131-
PlotlyGraph._loadMathjax ? mathjax() : undefined,
131+
PlotlyGraph._loadMathjax ? lazyLoadMathJax() : undefined,
132132
]).then(([graph]) => graph)
133133
);
134134

components/dash-core-components/src/components/Markdown.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {asyncDecorator} from '@plotly/dash-component-plugins';
22
import PropTypes from 'prop-types';
33
import React, {Component, Suspense} from 'react';
44
import markdown from '../utils/LazyLoader/markdown';
5-
import mathjax from '../utils/LazyLoader/mathjax';
5+
import lazyLoadMathJax from '../utils/LazyLoader/mathjax';
66

77
// eslint-disable-next-line valid-jsdoc
88
/**
@@ -113,7 +113,7 @@ DashMarkdown.defaultProps = {
113113
const RealDashMarkdown = asyncDecorator(DashMarkdown, () =>
114114
Promise.all([
115115
markdown(),
116-
DashMarkdown._loadMathjax ? mathjax() : undefined,
116+
DashMarkdown._loadMathjax ? lazyLoadMathJax() : undefined,
117117
]).then(([md]) => md)
118118
);
119119

0 commit comments

Comments
 (0)