File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export class Mini {
33
33
this . _initEntities ( )
34
34
this . _initializeGlobalVariables ( )
35
35
Events . applyEvents ( )
36
- this . state . evaluate ( )
36
+ await this . state . evaluate ( )
37
37
this . observer . init ( )
38
38
const endTime = performance . now ( )
39
39
const executionTime = endTime - startTime
Original file line number Diff line number Diff line change @@ -206,15 +206,15 @@ export class State {
206
206
this . attachVariableHelpers ( [ varName ] , entityID )
207
207
}
208
208
209
- evaluate ( ) {
209
+ async evaluate ( ) {
210
210
const promises = [ ]
211
211
212
212
Array . from ( this . entities . values ( ) ) . forEach ( ( entity ) => {
213
213
promises . push ( entity . attributes . evaluate ( ) )
214
214
} )
215
215
216
216
await Promise . all ( promises )
217
-
217
+
218
218
this . attachVariableHelpers ( Array . from ( this . variables . keys ( ) ) )
219
219
this . shouldUpdate = true
220
220
}
You can’t perform that action at this time.
0 commit comments