/* globals module */

'use strict'

module.exports = {
  name: 'ember-frost-bunsen',

  included: function (app) {
    this._super.included(app)
    app.import('bower_components/z-schema/dist/ZSchema-browser.js')
  },

  init: function (app) {
    this.options = this.options || {}
    this.options.babel = this.options.babel || {}
    this.options.babel.optional = this.options.babel.optional || []

    if (this.options.babel.optional.indexOf('es7.decorators') === -1) {
      this.options.babel.optional.push('es7.decorators')
    }
    this._super.init && this._super.init.apply(this, arguments)
  }
}

/* globals module */

'use strict'

module.exports = {
  name: 'ember-frost-bunsen',

  included: function (app) {
    this._super.included(app)
    this.app.import('bower_components/z-schema/dist/ZSchema-browser.js')
  },

  init: function (app) {
    this.options = this.options || {}
    this.options.babel = this.options.babel || {}
    this.options.babel.optional = this.options.babel.optional || []

    if (this.options.babel.optional.indexOf('es7.decorators') === -1) {
      this.options.babel.optional.push('es7.decorators')
    }
    this._super.init && this._super.init.apply(this, arguments)
  }
}

Revert "incorrect call to this.app.import(). causing issues in consuming app"
Revert "incorrect call to this.app.import(). causing issues in consuming app"

This reverts commit d41144c032dd2bebe05435251b583ed2631da025.
