From 696e3b888c417ef807b2eca00eaf05035ec0e890 Mon Sep 17 00:00:00 2001 From: Jakub Pawlowicz Date: Thu, 27 Aug 2015 07:36:19 +0100 Subject: [PATCH] Improves `outline` break up with source maps. Another example where JS type coercion betrayed us. --- lib/properties/break-up.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/properties/break-up.js b/lib/properties/break-up.js index 41e7e0ef..ae9701d2 100644 --- a/lib/properties/break-up.js +++ b/lib/properties/break-up.js @@ -292,7 +292,7 @@ function widthStyleColor(property, compactable, validator) { if (values.length > 0) { matches = values.filter(_widthFilter(validator)); - match = matches.length > 1 && (matches[0] == 'none' || matches[0] == 'auto') ? matches[1] : matches[0]; + match = matches.length > 1 && (matches[0][0] == 'none' || matches[0][0] == 'auto') ? matches[1] : matches[0]; if (match) { width.value = [match]; values.splice(values.indexOf(match), 1); -- 2.34.1