Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Call parent's treeForAddonStyles if it exists
  • Loading branch information
JoelWAnna authored Mar 28, 2018
commit 650189e796ae7af6d3122ca67cf41a5c94d3fa4e
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ module.exports = {
},

treeForParentAddonStyles: function(tree) {
return this.processComponentStyles(tree);
var parentAddonStyles = this.parent.treeForAddonStyles || function(t) { return t };
return parentAddonStyles.bind(this.parent)(this.processComponentStyles(tree));
},

treeForStyles: function(tree) {
Expand Down