mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-14 00:39:57 -04:00
Minor code simplification.
This commit is contained in:
parent
7f3b9aa900
commit
a4f36a59a6
1 changed files with 1 additions and 1 deletions
|
@ -1042,6 +1042,6 @@ Base.each(Color._types, function(properties, type) {
|
|||
? new Color(type, components)
|
||||
: new Color(arg);
|
||||
};
|
||||
if (!/^(gray|gradient)$/.test(type))
|
||||
if (type.length == 3)
|
||||
this[type.toUpperCase() + 'Color'] = ctor;
|
||||
}, this);
|
||||
|
|
Loading…
Reference in a new issue