Skip to content

Commit

Permalink
fix(ember-2.11): moving to concatinating and reasinging the classname…
Browse files Browse the repository at this point in the history
…s incase a classname is already in the array before the init call per @rwjblue suggestion
  • Loading branch information
webark committed Dec 1, 2016
1 parent bb99d2e commit 40113e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addon/initializers/component-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ Component.reopen({
}),

init() {
this._super(...arguments);

let name = this.get('componentCssClassName');

if (this.get('tagName') !== '' && name) {
this.classNames = [name];
this.classNames = this.classNames.concat(name);
}

this._super(...arguments);
}
});

Expand Down

0 comments on commit 40113e6

Please sign in to comment.