We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fd35d0 commit be554cbCopy full SHA for be554cb
addon.js
@@ -43,10 +43,19 @@ module.exports = {
43
name: require('./package').name,
44
imports: imports,
45
46
+
47
+ _findApp() {
48
+ let parent = this.parent;
49
+ while (parent.parent) {
50
+ parent = parent.parent;
51
+ }
52
+ return parent;
53
+ },
54
55
_getAddonOptions() {
56
const parentOptions = this.parent && this.parent.options;
- const appOptions = this.app && this.app.options;
- const addonOptions = parentOptions || appOptions || {};
57
+ const appOptions = this._findApp().options;
58
+ const addonOptions = Object.assign({}, parentOptions, appOptions);
59
60
return Object.assign({
61
style: {
0 commit comments