Skip to content

Commit 59f1d19

Browse files
committed
clean up leafo#86
1 parent 0b57a52 commit 59f1d19

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scss.inc.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2738,11 +2738,6 @@ protected function parseChunk() {
27382738
{
27392739
// check for !default
27402740
$defaultVar = $value[0] == "list" && $this->stripDefault($value);
2741-
if (!$defaultVar && isset($value[2]) && is_array($value[2])) {
2742-
$nestedValue = end($value[2]);
2743-
$defaultVar = is_array($nestedValue) && $nestedValue[0] == "list" && $this->stripDefault($value[2][count($value[2]) - 1]);
2744-
}
2745-
27462741
$this->append(array("assign", $name, $value, $defaultVar), $s);
27472742
return true;
27482743
} else {
@@ -2824,6 +2819,10 @@ protected function stripDefault(&$value) {
28242819
return true;
28252820
}
28262821

2822+
if ($def[0] == "list") {
2823+
return $this->stripDefault($value[2][count($value[2]) - 1]);
2824+
}
2825+
28272826
return false;
28282827
}
28292828

0 commit comments

Comments
 (0)