omersaeed/gloss — pull request #1 by aaronj1335 (2012-06-21 21:21:32+00:00)
Title: Multiselectwidget

## what this commit commit does

this doesn't actually fix the widgetizing issue, but it sets the test up so all you need to do is write the code.

the few things i fixed:
- removed the require of `text!./multiselect.html`, which doesn't appear to exist
- added an assertion to 'multiselect div correctly widgetized' test to make sure it was getting widgetized as an acutal `MultiSelect` widget
- changed the markup that the 'multiselect select correctly widgetized' test uses so that its actually a `` element

so if you merge this in, then you're all set to implement widgetizing a `` element into a `MultiSelect` widget.

## what you'll need to do

the problem is `MultiSelect` assumes a certain layout of `self.$node`, which does not hold for this case. you'll need to add something in `MultiSelect.create` to check of the node type is `select[multiple]`, and if so, then replace `self.$node` with the proper markup (from `multiselect.mtpl`.

you can see a similar example in [the `SelectBox` widget][selectbox]. also note that `
` elements should be maintained as entries in the `CheckBoxGroup`.

[selectbox]: https://github.com/siq/gloss/blob/master/src/widgets/selectbox.js#L43-52