We should be able to clear out a model, even if a particular field has an array of values.
var Model = require('ampersand-state');
var MyModel = Model.extend({
props: {
stuff: {
type: 'string',
required: false,
values: ['a', 'b', 'c', '']
}
}
});
var model = new MyModel({stuff: 'a'});
//This line will throw
model.clear();
We should be able to clear out a model, even if a particular field has an array of values.