odyniec/selectlist — pull request #8 by kristoffer-sundstrom (2012-07-20 13:13:02+00:00)
Title: Added a function setTitle that allows you to set the title after having ...

...initialized the selectlist.

At first I built this abusing the structure of the SelectList, but the code became unbearable to look at.

So I decided to add another function to the selectlist called setTitle.
setTitle inserts a new title-option if none exists and changes the value of it if it exists.

I considered doing this as a setOptions-parameter, but I decided against it because titles aren't instantiated that way to begin with.

And I'm sorry about the formatting, I'm still pretty new to branching other people's projects.