bgrins/spectrum — pull request #103 by Dodo-87 (2013-07-16 12:02:39+00:00)
Title: Issue102 datalist

Tried to fix this on my own:

Added new option showDatalistPalette, that defaults to true.
If a (valid) datalist is present, its values are used to form a palette, that is shown above any other palette (i.e. palette and selectionPalette).

The new datalistPalette is initially empty and update, when the UI is updated. This is to respect changes of the datalist element/list attribute. (This causes "flat" colorpickers to "jump".)

Uniqueness of selectionPalette colors are checked against datalistPalette colors, if applicable.

Created some tests:
http://jsfiddle.net/5M2Z6/