forked from iStefo/ember-select-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
20 lines (16 loc) · 729 Bytes
/
index.js
File metadata and controls
20 lines (16 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module.exports = {
name: 'ember-select-2',
included: function(app) {
this._super.included(app);
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' });
}
}
};