forked from iStefo/ember-select-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
24 lines (19 loc) · 792 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = {
name: 'ember-select-2',
included: function(app) {
this._super.included(app);
if (process.env.EMBER_CLI_FASTBOOT) {
return;
}
app.import(app.bowerDirectory + '/select2/select2.js');
// include assets if there are no options or includeAssets IS NOT false
var includeAssets = (app.options.select2 === undefined ||
app.options.select2.includeAssets !== false);
if (includeAssets) {
app.import(app.bowerDirectory + '/select2/select2.css');
app.import(app.bowerDirectory + '/select2/select2.png', { destDir: 'assets' });
app.import(app.bowerDirectory + '/select2/select2x2.png', { destDir: 'assets' });
app.import(app.bowerDirectory + '/select2/select2-spinner.gif', { destDir: 'assets' });
}
}
};