mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
fix regression: mixin guards compare units correctly
This commit is contained in:
@@ -93,7 +93,7 @@ tree.Dimension.prototype = {
|
||||
} else if (bValue < aValue) {
|
||||
return 1;
|
||||
} else {
|
||||
if (!b.unit.isEmpty() && a.unit.compare(b) !== 0) {
|
||||
if (!b.unit.isEmpty() && a.unit.compare(b.unit) !== 0) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user