Skip to content

Commit f36e2f2

Browse files
authored
Merge pull request #87 from Techn1x/master
Split out update logic into its own method
2 parents 757e383 + 9898284 commit f36e2f2

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)