sproutcore/sproutcore — pull request #973 by jlaxson (2013-04-18 02:51:50+00:00)
Title: Fix for SegmentedView bound to Array property

If you bind a SC.SegmentedView to a record attribute declared as SC.Record.attr(Array), you will never be able to select an item in the Segmented view. This is because the SegmentedView coerces its value to a string if only one item is selected, and the RecordAttribute rejects the change as the value is not an array.

This PR adds an option to disable the coercion so the value of a SegmentedView is always an array, regardless of having 0, 1, or more items selected. If this is desired, I will add docs.