forked from lifegadget/ui-slider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
28 lines (23 loc) · 810 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
25
26
27
28
/* jshint node: true */
'use strict';
var util = require('util');
var extend = util._extend;
var defaultOptions = {
importBootstrapSliderCSS: true,
importAddonCss: true
};
module.exports = {
name: 'ui-slider',
description: 'A flexible UI slider for ambitious Ember apps',
included: function(app) {
var parentApp = (typeof app.import !== 'function' && app.app) ? app.app : app;
var options = extend(defaultOptions, app.options['ui-slider']);
parentApp.import('bower_components/seiyria-bootstrap-slider/dist/bootstrap-slider.js');
if (options.importBootstrapSliderCSS) {
parentApp.import('bower_components/seiyria-bootstrap-slider/dist/css/bootstrap-slider.css');
}
if (options.importAddonCss) {
parentApp.import('vendor/ui-slider/ui-slider.css');
}
}
};