Permalink
Browse files

Expose clickoutFiresChange in case you want to force no change event

  • Loading branch information...
1 parent e297fa9 commit f7174f197e1d05da91138fbb690aced365289e0d @bgrins committed Oct 12, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 spectrum.js
View
@@ -19,6 +19,7 @@
flat: false,
showInput: false,
showButtons: true,
+ clickoutFiresChange: true,
showInitial: false,
showPalette: false,
showPaletteOnly: false,
@@ -167,7 +168,7 @@
colorOnShow = false,
preferredFormat = opts.preferredFormat,
currentPreferredFormat = preferredFormat,
- clickoutFiresChange = !opts.showButtons;
+ clickoutFiresChange = !opts.showButtons || opts.clickoutFiresChange;
chooseButton.text(opts.chooseText);
cancelButton.text(opts.cancelText);

0 comments on commit f7174f1

Please sign in to comment.