Skip to content

Commit 7ff9a1a

Browse files
authored
Merge pull request #79 from aomran/fix#77
Add chart.js dependency in vendor folder
2 parents 28e4e52 + 36a0653 commit 7ff9a1a

File tree

3 files changed

+12762
-4
lines changed

3 files changed

+12762
-4
lines changed

index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
module.exports = {
55
name: 'ember-cli-chart',
6-
included: function included(app) {
7-
this._super.included(app);
8-
app.import(app.project.nodeModulesPath + '/chart.js/dist/Chart.js');
6+
included: function(app, parentAddon) {
7+
this._super.included.apply(this, arguments);
8+
var target = (parentAddon || app);
9+
target.import('vendor/Chart.js');
910
}
1011
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-cli-chart",
3-
"version": "3.3.0",
3+
"version": "3.3.1",
44
"description": "Ember component for ChartJS",
55
"directories": {
66
"doc": "doc",

0 commit comments

Comments
 (0)