Skip to content

Commit

Permalink
Fix few regressions after the trait update
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Aug 17, 2017
1 parent c0e90c7 commit c45e572
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dom_components/model/Component.js
Expand Up @@ -161,7 +161,10 @@ module.exports = Backbone.Model.extend(Styleable).extend({
this.get('traits').each((trait) => {
found = 1;
if (!trait.get('changeProp')) {
attrs[trait.get('name')] = trait.getInitValue();
const value = trait.getInitValue();
if (value) {
attrs[trait.get('name')] = value;
}
}
});

Expand Down

0 comments on commit c45e572

Please sign in to comment.