Minor code simplification.

This commit is contained in:
Jürg Lehni 2013-04-09 14:04:25 -07:00
parent 7f3b9aa900
commit a4f36a59a6

View file

@ -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);