Skip to content

Commit e44dc24

Browse files
committed
Fix linting
1 parent e9d7eee commit e44dc24

File tree

5 files changed

+291
-246
lines changed

5 files changed

+291
-246
lines changed

addon/components/ember-chart.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* global Chart */
2-
import Ember from 'ember';
2+
import Component from '@ember/component';
33

4-
export default Ember.Component.extend({
4+
export default Component.extend({
55
tagName: 'canvas',
66
attributeBindings: ['width', 'height'],
77

@@ -11,7 +11,7 @@ export default Ember.Component.extend({
1111
let data = this.get('data');
1212
let type = this.get('type');
1313
let options = this.get('options');
14-
14+
1515
let chart = new Chart(context, {
1616
type: type,
1717
data: data,
@@ -29,21 +29,21 @@ export default Ember.Component.extend({
2929
this._super(...arguments);
3030
this.updateChart();
3131
},
32-
32+
3333
updateChart() {
3434
let chart = this.get('chart');
3535
let data = this.get('data');
3636
let options = this.get('options');
3737
let animate = this.get('animate');
38-
39-
if (chart) {
40-
chart.config.data = data;
41-
chart.config.options = options;
42-
if (animate) {
43-
chart.update();
44-
} else {
45-
chart.update(0);
46-
}
47-
}
38+
39+
if (chart) {
40+
chart.config.data = data;
41+
chart.config.options = options;
42+
if (animate) {
43+
chart.update();
44+
} else {
45+
chart.update(0);
46+
}
47+
}
4848
}
4949
});

package-lock.json

+111-111
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)