/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-c3',
  included: function(app) {
    this._super.included(app);

    app.import(app.bowerDirectory + '/d3/d3.min.js');
    app.import(app.bowerDirectory + '/c3/c3.min.css');
    app.import(app.bowerDirectory + '/c3/c3.min.js');
  }
};

/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-c3',
  included: function(app, parentAddon) {
    // see: https://github.com/ember-cli/ember-cli/issues/3718
    if (typeof app.import !== 'function' && app.app) {
      this.app = app = app.app;
    }
    this._super.included(app);

    var target = parentAddon || app;

    target.import(target.bowerDirectory + '/d3/d3.min.js');
    target.import(target.bowerDirectory + '/c3/c3.min.css');
    target.import(target.bowerDirectory + '/c3/c3.min.js');
  }
};

Allow ember-c3 to be used as a nested addon
[BUGFIX] Allow ember-c3 to be used as a nested addon

This changes allow ember-c3 to be used as a nested addon.
