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

module.exports = {
  name: 'ember-plupload',

  included: function (app) {
    this._super.included(app);
    if (process.env.EMBER_ENV === 'development') {
      app.import('bower_components/plupload/js/moxie.js');
      app.import('bower_components/plupload/js/plupload.dev.js');
    } else {
      app.import('bower_components/plupload/js/plupload.full.min.js');
    }
    app.import('bower_components/plupload/js/Moxie.swf', {
      destDir: 'assets'
    });
    app.import('bower_components/plupload/js/Moxie.xap', {
      destDir: 'assets'
    });
    app.import('bower_components/dinosheets/dist/dinosheets.amd.js', {
      exports: {
        'dinosheets': ['default']
      }
    });

    app.import('vendor/styles/ember-plupload.css');
  }
};

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

module.exports = {
  name: 'ember-plupload',

  included: function (app) {
    this._super.included(app);
    if (process.env.EMBER_ENV === 'development') {
      app.import('bower_components/plupload/js/moxie.js');
      app.import('bower_components/plupload/js/plupload.dev.js');
    } else {
      app.import('bower_components/plupload/js/plupload.dev.js');
    }
    app.import('bower_components/plupload/js/Moxie.swf', {
      destDir: 'assets'
    });
    app.import('bower_components/plupload/js/Moxie.xap', {
      destDir: 'assets'
    });
    app.import('bower_components/dinosheets/dist/dinosheets.amd.js', {
      exports: {
        'dinosheets': ['default']
      }
    });

    app.import('vendor/styles/ember-plupload.css');
  }
};

Use plupload.dev.js instead of full, as it contains fixes for PUT option.
Use plupload.dev.js instead of full, as it contains fixes for PUT option.
