awnry/jquery-picklist — pull request #2 by yerinle (2012-05-21 19:19:32+00:00)
Title: Updated to use version latest of the library from google code

Hi,

Thanks for your quick response to my pull request on github.

Sorry for messing up the format of the code, IDE didn't do the right thing on re-format.

I have integrated my changes with the current codebase from google code.

The issue my patch resolves is to do with using string values in select options e.g

JavaScript

CoffeeScript

Groovy

Python

Java

will yield

Java

JavaScript

Ruby

Scala

Instead of

Java

JavaScript

Ruby

Scala

My patch uses an additional attribute (data-value), the prefix of data- makes it future proof.
So by sending an optional flag of useData to the pickList function, you will now be able to
generate the right widget code.

I have also included a number of Jasmine test covering both use-cases, these are available
in my fork on github. It might be worth incorporating this to help with testing in the future. Thanks again for sharing.

Kind Regards,
Yinka.