The undefined option is automatically added from the ArrayProperty template. So without this, it will show an error when you select "Choose an option..."

> On May 10, 2014, at 10:01 AM, stnguyen09 <notifications@github.com> wrote:
> 
> In Source/models/Widget/TextBlockWidget/TextBlockViewModel.js:
> 
> > +        this.textSize = new NumberProperty({
> > +            displayName: 'Text Size (px)',
> > +            value: 12,
> > +            validValue: createValidator({
> > +                min: 1
> > +            }),
> > +            errorMessage: 'Value must be greater than 0.'
> > +        });
> > +
> > +        // Text Align
> > +        this.textAlign = new ArrayProperty({
> > +            displayName: 'Text Align',
> > +            value: 'Left',
> > +            options: ['Left', 'Center', 'Right'],
> > +            errorMessage: 'Value is required.',
> > +            validValue: function(value) {
> Do we actually need the validValue function since we're predefining the options, the options never change, and there is no "undefined" option?
> 
> —
> Reply to this email directly or view it on GitHub.