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

Merge d511e2ab72974919ddecf9299199fe8f5d35add3 into 41d780c31fbe01d68e3c3e15e90d8d27d6935939

This commit is contained in:
René Løwe Jacobsen 2016-12-04 00:49:36 +00:00 committed by GitHub
commit 2e7d07f40d

View File

@ -225,8 +225,10 @@
if (!ranges[typ][typ]) { // no alpha|HEX if (!ranges[typ][typ]) { // no alpha|HEX
if (type !== typ && typ !== 'XYZ') { if (type !== typ && typ !== 'XYZ') {
from = exceptions[typ] || 'rgb'; from = exceptions[typ] || 'rgb';
if (typ !== from) {
colors[typ] = convert[from + '2' + typ](colors[from]); colors[typ] = convert[from + '2' + typ](colors[from]);
} }
}
if (!RND[typ]) RND[typ] = {}; if (!RND[typ]) RND[typ] = {};
modes = colors[typ]; modes = colors[typ];