the facet/model used for the permissive tests is created via the following code that uses an existing (Permissive) model as the appliesTo
var permissiveFacet = Permissive(model, {
extraStaticMethod: function(){
return 4;
}
});
if permissiveFacet.get(1) is called, the object returned does not include the properties from the prototype of model.
i'm not sure what the correct behavior should be. if the schema for permissiveFacet has no prototype, is it supposed to use the prototype from the model facet? would the behavior be different for the Restrictive facet?
i'm thinking that for Permissive, if no prototype was provided by the new schema then use the existing prototype. for Restrictive, if no prototype was provided by the new schema use an empty prototype. is that right?
the facet/model used for the permissive tests is created via the following code that uses an existing (Permissive)
modelas theappliesToif
permissiveFacet.get(1)is called, the object returned does not include the properties from the prototype ofmodel.i'm not sure what the correct behavior should be. if the schema for
permissiveFacethas no prototype, is it supposed to use the prototype from themodelfacet? would the behavior be different for the Restrictive facet?i'm thinking that for Permissive, if no prototype was provided by the new schema then use the existing prototype. for Restrictive, if no prototype was provided by the new schema use an empty prototype. is that right?