From: Jakub Pawlowicz Date: Thu, 27 Aug 2015 06:36:19 +0000 (+0100) Subject: Improves `outline` break up with source maps. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=696e3b888c417ef807b2eca00eaf05035ec0e890;p=clean-css.git Improves `outline` break up with source maps. Another example where JS type coercion betrayed us. --- 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);