Skip to content

Commit be554cb

Browse files
committed
fix
1 parent 0fd35d0 commit be554cb

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

addon.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,19 @@ module.exports = {
4343
name: require('./package').name,
4444
imports: imports,
4545

46+
47+
_findApp() {
48+
let parent = this.parent;
49+
while (parent.parent) {
50+
parent = parent.parent;
51+
}
52+
return parent;
53+
},
54+
4655
_getAddonOptions() {
4756
const parentOptions = this.parent && this.parent.options;
48-
const appOptions = this.app && this.app.options;
49-
const addonOptions = parentOptions || appOptions || {};
57+
const appOptions = this._findApp().options;
58+
const addonOptions = Object.assign({}, parentOptions, appOptions);
5059

5160
return Object.assign({
5261
style: {

0 commit comments

Comments
 (0)