made createType synchronous
This commit is contained in:
2
src/y.js
2
src/y.js
@@ -151,7 +151,7 @@ class YConfig {
|
||||
var type = Y[typeName]
|
||||
var typedef = type.typeDefinition
|
||||
var id = ['_', typedef.struct + '_' + typeName + '_' + propertyname + '_' + typeConstructor]
|
||||
share[propertyname] = yield* this.createType(type.apply(typedef, args), id)
|
||||
share[propertyname] = this.store.createType(type.apply(typedef, args), id)
|
||||
}
|
||||
this.store.whenTransactionsFinished()
|
||||
.then(callback)
|
||||
|
||||
Reference in New Issue
Block a user