(fireCallback)
| 900 | } |
| 901 | |
| 902 | function updateOriginalInput(fireCallback) { |
| 903 | var color = get(), |
| 904 | displayColor = '', |
| 905 | hasChanged = isDefault ? true : !tinycolor.equals(color, colorOnShow); |
| 906 | |
| 907 | if (color) { |
| 908 | displayColor = color.toString(currentPreferredFormat); |
| 909 | // Update the selection palette with the current color |
| 910 | !visible && addColorToSelectionPalette(color); |
| 911 | } |
| 912 | |
| 913 | if (isInput) { |
| 914 | boundElement.val(displayColor); |
| 915 | } |
| 916 | |
| 917 | if (fireCallback && hasChanged) { |
| 918 | callbacks.change(color); |
| 919 | boundElement.trigger('change', [color]); |
| 920 | } |
| 921 | } |
| 922 | |
| 923 | function reflow() { |
| 924 | if (!visible) { |
no test coverage detected