2
0
mirror of https://github.com/esiur/esiur-js.git synced 2026-04-03 21:48:21 +00:00
This commit is contained in:
2022-09-03 22:06:45 +03:00
parent 87e04c37ac
commit b04ff2b5a4
5 changed files with 8 additions and 8 deletions

View File

@@ -172,7 +172,7 @@ export default class DataDeserializer {
let record;
if (template.definedType != null) {
record = Warehouse.createInstance(template.definedType);
record = new template.definedType();
} else {
record = new Record();
}
@@ -221,7 +221,7 @@ export default class DataDeserializer {
if (template != null) {
if (template.definedType != null) {
var enumVal = Warehouse.createInstance(template.definedType);
var enumVal = new template.definedType();
enumVal.index = index;
enumVal.name = template.constants[index].name;
enumVal.value = template.constants[index].value;
@@ -238,7 +238,7 @@ export default class DataDeserializer {
connection.getTemplate(classId).then((tmp) => {
if (tmp != null) {
if (tmp.definedType != null) {
var enumVal = Warehouse.createInstance(tmp.definedType);
var enumVal = new tmp.definedType();
enumVal.index = index;
enumVal.name = tmp.constants[index].name;
enumVal.value = tmp.constants[index].value;

View File

@@ -132,7 +132,7 @@ export class RepresentationTypeParseResults {
export default class RepresentationType {
static getRuntimeType() {
getRuntimeType() {
let runtimeType = null;
if (IdentifierToTypeMap[this.identifier] != undefined)