You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should have a general solution that allows us to model default values.
This should fix issues addressed in #9 and allow a consistent access to default values from javascript and during serialization.
Example
varfoo=moddle.create('foo');// accessing default value via prototypefoo.someValueWithDefault;// 'BAR'foo.hasOwnProperty('someValueWithDefault');// false// accessing actual valuefoo.someValueWithDefault='FOOBAR';foo.hasOwnProperty('someValueWithDefault');// true// removing actual valuedeletefoo.someValueWithDefault;
Notes
Some values such as collection properties must not be removable and cannot be provided via the prototype either
The text was updated successfully, but these errors were encountered:
We should have a general solution that allows us to model default values.
This should fix issues addressed in #9 and allow a consistent access to default values from javascript and during serialization.
Example
Notes
The text was updated successfully, but these errors were encountered: