made createType synchronous

This commit is contained in:
Kevin Jahns
2016-08-25 04:42:23 +02:00
parent 4078020afd
commit e1e94bcf5d
4 changed files with 56 additions and 55 deletions

View File

@@ -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)