Open
Description
ArraySchemas cannot be set to other ArraySchema objects from within a constructor.
Eg.
var arraySchemaToSet = new ArraySchema<test>();
//code adding stuff to arraySchemaToSet
sampleTestSchema = new testSchema({
sampleArraySchema: arraySchemaToSet
});
sampleTestSchema.sampleArraySchema would be empty, instead of being equal to arraySchemaToSet.
This appears to be a bug, setting the ArraySchema outside a constructor appears to work fine.
Eg.
var arraySchemaToSet = new ArraySchema<test>();
//code adding stuff to arraySchemaToSet
sampleTestSchema = new testSchema({
});
sampleTestSchema.sampleArraySchema = arraySchemaToSet;
sampleTestSchema.sampleArraySchema is correctly set to arraySchemaToSet.
Metadata
Metadata
Assignees
Labels
No labels