mattdesl / select-box

a minimal DOM <select> box utility
MIT License
4 stars 1 forks source link

Made initializing with string behave as expected. #6

Closed wyqydsyq closed 9 years ago

wyqydsyq commented 9 years ago

Previously when calling the constructor with a string (SelectBox('Test')) it would wrap the name/value with  and 

e.g.

SelectBox('test').element.outerHTML

Produces:

<select><option value="test">test</option>

This patch amends this problem so:

SelectBox('test').element.outerHTML

Produces:

<select><option value="test">test</option>