2
0
mirror of https://github.com/PitPik/colorPicker.git synced 2025-08-25 10:02:46 -06:00

minor fix

This commit is contained in:
peterd 2015-01-31 13:32:20 +01:00
parent cb60a7671b
commit 099c6f9908
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -137,7 +137,7 @@
isColorPicker = $(e.target).closest('.cp-app')[0], isColorPicker = $(e.target).closest('.cp-app')[0],
inputIndex = $(that).index(e.target); inputIndex = $(that).index(e.target);
if (isColorPicker && $(colorPickers).index(isColorPicker)) { if (isColorPicker && colorPicker && $(colorPickers).index(isColorPicker)) {
if (e.target === colorPicker.nodes.exit) { if (e.target === colorPicker.nodes.exit) {
$colorPicker.hide(animationSpeed); $colorPicker.hide(animationSpeed);
$(':focus').trigger('blur'); $(':focus').trigger('blur');