Skip to content

Commit 1e342d3

Browse files
committed
Added build files
1 parent 91cff7a commit 1e342d3

File tree

4 files changed

+12
-17
lines changed

4 files changed

+12
-17
lines changed

dist/drill-down.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ function (_React$Component) {
16551655
_this = _possibleConstructorReturn(this, _getPrototypeOf(ReactFC).call(this, props));
16561656
_this.containerId = (0, _v["default"])();
16571657
_this.oldOptions = null;
1658-
_this.FusionCharts = props.fcLibrary || ReactFC.fusionChartsCore;
1658+
_this.FusionCharts = props.fcLibrary || ReactFC.fusionChartsCore || window.FusionCharts;
16591659
return _this;
16601660
}
16611661

@@ -1665,13 +1665,11 @@ function (_React$Component) {
16651665
this.renderChart();
16661666
}
16671667
}, {
1668-
key: "componentWillReceiveProps",
1669-
value: function componentWillReceiveProps(nextProps) {
1670-
if (!this.oldOptions) {
1671-
return;
1668+
key: "componentDidUpdate",
1669+
value: function componentDidUpdate(prevProps) {
1670+
if (prevProps !== this.props) {
1671+
this.detectChanges(this.props);
16721672
}
1673-
1674-
this.detectChanges(nextProps);
16751673
}
16761674
}, {
16771675
key: "componentWillUnmount",

dist/drill-down.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-fusioncharts.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
134134

135135
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
136136

137-
// import FusionCharts from 'fusioncharts/core';
138137

139138

140139

@@ -171,7 +170,7 @@ function (_React$Component) {
171170
_this = _possibleConstructorReturn(this, _getPrototypeOf(ReactFC).call(this, props));
172171
_this.containerId = uuid_v4__WEBPACK_IMPORTED_MODULE_1___default()();
173172
_this.oldOptions = null;
174-
_this.FusionCharts = props.fcLibrary || ReactFC.fusionChartsCore;
173+
_this.FusionCharts = props.fcLibrary || ReactFC.fusionChartsCore || window.FusionCharts;
175174
return _this;
176175
}
177176

@@ -181,13 +180,11 @@ function (_React$Component) {
181180
this.renderChart();
182181
}
183182
}, {
184-
key: "componentWillReceiveProps",
185-
value: function componentWillReceiveProps(nextProps) {
186-
if (!this.oldOptions) {
187-
return;
183+
key: "componentDidUpdate",
184+
value: function componentDidUpdate(prevProps) {
185+
if (prevProps !== this.props) {
186+
this.detectChanges(this.props);
188187
}
189-
190-
this.detectChanges(nextProps);
191188
}
192189
}, {
193190
key: "componentWillUnmount",

0 commit comments

Comments
 (0)