Skip to content

Commit

Permalink
fix(ember-2.11): now not pushing to the frozen classnames property, b…
Browse files Browse the repository at this point in the history
…ut reasigning it
  • Loading branch information
webark committed Nov 30, 2016
1 parent f388677 commit 63274c0
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.push(name);
this.classNames = [name];
}

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

Expand Down

0 comments on commit 63274c0

Please # to comment.