bgrins/spectrum — pull request #15 by niklasf (2012-04-20 19:04:54+00:00)
Title: Only revert on hide when the buttons are shown

With `showButtons` disabled there is no way the user can save the input. Is this the right way to only revert the changes when the buttons were visible?

Steps to reproduce:
- Start with a color input and `{ showButtons: false }`
- Click on the input. The widget is shown.
- Change the color.
- How to save? Click next to the input. The color is reverted.