Clone the color when calling Color#convert with the same color type.

This commit is contained in:
Jonathan Puckey 2011-05-21 17:37:36 +02:00
parent e5034a5a76
commit f83d16906c

View file

@ -209,7 +209,7 @@ var Color = this.Color = Base.extend(new function() {
convert: function(type) {
return this._colorType == type
? this
? this.clone()
: converters[this._colorType + '-' + type](this);
},