2
0
mirror of https://github.com/PitPik/colorPicker.git synced 2025-09-24 16:40:57 -06:00

Merge cc769c86098ccf80c75d73bc8a3022f5ca69bba3 into ab70f43f6fc80d085b0e3511afb8d12f742dda2b

This commit is contained in:
danielcwilliams 2017-07-27 16:03:26 +00:00 committed by GitHub
commit 424387f8b9

View File

@ -135,7 +135,7 @@
colorPickerUI = (colorPicker ? colorPicker.nodes.colorPicker : undefined),
animationSpeed = colorPicker ? colorPicker.color.options.animationSpeed : 0,
isColorPicker = colorPicker && (function(elm) {
while (elm) {
while (elm && elm instanceof HTMLElement) {
if ((elm.className || '').indexOf('cp-app') !== -1) return elm;
elm = elm.parentNode;
}