Explorar o código

less var access (#26817)

ycw %!s(int64=2) %!d(string=hai) anos
pai
achega
309e5f6f64
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      src/math/Color.js

+ 1 - 5
src/math/Color.js

@@ -442,11 +442,7 @@ class Color {
 
 		this.getHSL( _hslA );
 
-		_hslA.h += h; _hslA.s += s; _hslA.l += l;
-
-		this.setHSL( _hslA.h, _hslA.s, _hslA.l );
-
-		return this;
+		return this.setHSL( _hslA.h + h, _hslA.s + s, _hslA.l + l );
 
 	}