From 594787a0ba1a4c425c5c85d5e978788055132c00 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Tue, 18 Oct 2016 17:41:49 -0700 Subject: [PATCH] Fix plain-CSS invert(). --- lib/src/functions.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/functions.dart b/lib/src/functions.dart index fa130909..0f4a978d 100644 --- a/lib/src/functions.dart +++ b/lib/src/functions.dart @@ -214,7 +214,7 @@ void defineCoreFunctions(Environment environment) { if (arguments[0] is SassNumber) { // TODO: find some way of ensuring this is stringified using the right // options. We may need to resort to zones. - return _functionString("invert", arguments); + return _functionString("invert", arguments.take(1)); } var color = arguments[0].assertColor("color"); @@ -887,7 +887,7 @@ void defineCoreFunctions(Environment environment) { /// Returns a string representation of [name] called with [arguments], as though /// it were a plain CSS function. -SassString _functionString(String name, List arguments) => +SassString _functionString(String name, Iterable arguments) => new SassString("$name(" + arguments.map((argument) => argument.toCssString()).join(', ') + ")");