-
Notifications
You must be signed in to change notification settings - Fork 231
change create-react-class to javascript class for to reduce the size … #360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/chartsFactory.jsx
Outdated
| this.displayName = 'Highcharts' + chartType; | ||
| } | ||
|
|
||
| setChartRef = (chartRef) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this work?
Change to setChartRef(chartRef) ?
src/chartsFactory.jsx
Outdated
| if (!config) { | ||
| throw new Error('Config must be specified for the ' + this.displayName + ' component'); | ||
| } | ||
| let chartConfig = config.chart; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const?
src/chartsFactory.jsx
Outdated
| } | ||
| } | ||
|
|
||
| if (cutCode) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to isProdMode or something similar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
src/chartsFactory.jsx
Outdated
| renderTo: this.chartRef | ||
| function chartsFactory(chartType, Highcharts) { | ||
|
|
||
| class Charts extends Component { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just chart?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes)
…of the source file