No need to initialize with 0 since we're always setting them again.

This commit is contained in:
Jürg Lehni 2011-07-06 23:54:34 +02:00
parent 769ae05ad8
commit 16c31fc683

View file

@ -206,7 +206,7 @@ var Color = this.Color = Base.extend(new function() {
var t3s = [ h + 1 / 3, h, h - 1 / 3 ],
t2 = l < 0.5 ? l * (1 + s) : l + s - l * s,
t1 = 2 * l - t2,
c = [0, 0, 0];
c = [];
for (var i = 0; i < 3; i++) {
var t3 = t3s[i];
if (t3 < 0) t3 += 1;