From 40113e6bde03ecc5c34a8965af76ea323b0cbdf6 Mon Sep 17 00:00:00 2001 From: Mark David Avery Date: Wed, 30 Nov 2016 22:31:15 -0800 Subject: [PATCH] fix(ember-2.11): moving to concatinating and reasinging the classnames incase a classname is already in the array before the init call per @rwjblue suggestion --- addon/initializers/component-styles.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addon/initializers/component-styles.js b/addon/initializers/component-styles.js index 7cf34ce..426fbb3 100644 --- a/addon/initializers/component-styles.js +++ b/addon/initializers/component-styles.js @@ -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); } });