Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed mutation of color when adjusting values

  • Loading branch information...
commit 7845992e840e95628b2e8501d499ab543ccde877 1 parent 4e7bbea
TJ Holowaychuk tj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/functions/index.js
2  lib/functions/index.js
View
@@ -546,7 +546,7 @@ exports['-math'] = function(n, fn){
*/
exports['-adjust'] = function(color, prop, amount){
- var hsl = color.hsla;
+ var hsl = color.hsla.clone();
prop = { hue: 'h', saturation: 's', lightness: 'l' }[prop.string];
if (!prop) throw new Error('invalid adjustment property');
var val = amount.val;
Please sign in to comment.
Something went wrong with that request. Please try again.