Skip to content

Commit 9898284

Browse files
committed
Split out update logic into its own method
1 parent 757e383 commit 9898284

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

addon/components/ember-chart.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ export default Ember.Component.extend({
2727

2828
didUpdateAttrs() {
2929
this._super(...arguments);
30-
30+
this.updateChart();
31+
},
32+
33+
updateChart() {
3134
let chart = this.get('chart');
3235
let data = this.get('data');
3336
let options = this.get('options');

0 commit comments

Comments
 (0)