forked from sir-dunxalot/ember-tooltips
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
31 lines (22 loc) · 621 Bytes
/
index.js
File metadata and controls
31 lines (22 loc) · 621 Bytes
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
29
30
31
/* jshint node: true */
'use strict';
module.exports = {
name: 'ember-tooltips',
config: function(env, baseConfig) {
var rootElement = baseConfig.APP.rootElement;
var config = {};
if (rootElement) {
/*
This config overrides tether's bodyElement option.
https://github.com/HubSpot/tether/blob/4de1f5cb421e0e6149269a347ee261b06bdbd139/src/js/tether.js#L762
*/
config['ember-tether'] = {
bodyElementId: rootElement.replace('#', ''),
};
}
return config;
},
included: function(app) {
this._super.included(app); // For ember-cli-sass
},
};