File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 6
6
mixin,
7
7
assert,
8
8
computed,
9
+ Object : EmObject ,
9
10
} = Ember ;
10
11
11
12
// Imitation private properties
@@ -88,12 +89,14 @@ export default Mixin.create({
88
89
const id = this . elementId ;
89
90
90
91
this . stylesheet . attach ( id , componentName ) ;
91
- this . set ( 'classes' , this . stylesheet . sheet . classes ) ;
92
92
93
+ const classes = EmObject . create ( this . stylesheet . sheet . classes ) ;
93
94
const sheet = this . stylesheet . dynamicSheets [ id ] ;
94
95
const fields = this . get ( 'jssObservedProps' ) || [ ] ;
95
96
const update = ( ) => sheet . update ( this . getProperties ( fields ) ) ;
96
97
98
+ this . set ( 'classes' , classes ) ;
99
+
97
100
update ( ) ;
98
101
99
102
fields . forEach ( ( field ) => this . addObserver ( field , this , update ) ) ;
@@ -103,5 +106,5 @@ export default Mixin.create({
103
106
this . _super ( ...arguments ) ;
104
107
105
108
this . stylesheet . detach ( this . elementId ) ;
106
- }
109
+ } ,
107
110
} ) ;
You can’t perform that action at this time.
0 commit comments