2
0
mirror of https://github.com/PitPik/tinyColorPicker synced 2025-08-10 02:32:45 -06:00

empty value update

This commit is contained in:
peterd 2015-03-18 19:39:45 +01:00
parent 9f11548aa2
commit c4c1c7960d
3 changed files with 5 additions and 3 deletions

View File

@ -137,6 +137,7 @@
e.returnValue = false;
_$trigger._offset = $(this).offset();
_$trigger._hasValue = _$trigger[0].hasAttribute('value');
(action = action === 'xy_slider' ? xy_slider :
action === 'z_slider' ? z_slider : alpha)(e);
@ -199,7 +200,8 @@
v = (1 - colors.hsv.v) * _$xy_slider._height,
a = alpha * _$alpha._width,
translate3d = _GPU ? 'translate3d' : '',
hasNoValue = _$trigger.val() === '' && typeof toggled === 'boolean';
hasNoValue = _$trigger.hasValue &&
_$trigger.val() === '' && toggled !== undefined;
_$xy_slider._css = {
backgroundColor: 'rgb(' +

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long