浏览代码

less var access (#26817)

ycw 1 年之前
父节点
当前提交
309e5f6f64
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/math/Color.js

+ 1 - 5
src/math/Color.js

@@ -442,11 +442,7 @@ class Color {
 
 
 		this.getHSL( _hslA );
 		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 );
 
 
 	}
 	}