public
/
clean-css.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59dcc7c
)
Improves `outline` break up with source maps.
author
Jakub Pawlowicz
<contact@jakubpawlowicz.com>
Thu, 27 Aug 2015 06:36:19 +0000
(07:36 +0100)
committer
Jakub Pawlowicz
<contact@jakubpawlowicz.com>
Thu, 27 Aug 2015 06:44:52 +0000
(07:44 +0100)
Another example where JS type coercion betrayed us.
lib/properties/break-up.js
patch
|
blob
|
history
diff --git
a/lib/properties/break-up.js
b/lib/properties/break-up.js
index
41e7e0e
..
ae9701d
100644
(file)
--- 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);