SteveSanderson/knockout — pull request #196 by amonat (2011-11-04 18:51:30+00:00)
Title: Add optionsTitle data binding for setting the title attribute of options.

Add optionsTitle data binding for setting the title attribute of options.

This commit adds a new data binding called optionsTitle that sets the 'title' HTML attribute of an option that's created by an options data binding. It doesn't set the title attribute if the result of evaluating the binding is the empty string.

Another possible implementation for this would be to instead make an optionsAttr binding that works like the attr binding (http://knockoutjs.com/documentation/attr-binding.html) but applies to the created options rather than the , which would have the advantage of being more flexible.