Fix bad reliance on env variable, causing error when interpolating a comma seperated value

This commit is contained in:
Luke Page
2013-08-15 21:58:02 +01:00
parent a10be4d6a6
commit bc568f7bd8
3 changed files with 10 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ tree.Value.prototype = {
for(i = 0; i < this.value.length; i++) {
this.value[i].genCSS(env, output);
if (i+1 < this.value.length) {
output.add(env.compress ? ',' : ', ');
output.add((env && env.compress) ? ',' : ', ');
}
}
},

View File

@@ -38,3 +38,6 @@
color: #000000;
color: #ffa500;
}
.watermark {
family: Univers, Arial, Verdana, San-Serif;
}

View File

@@ -49,3 +49,9 @@
.mix-mul(black);
.mix-mul(orange);
}
@test: Arial, Verdana, San-Serif;
.watermark {
@family: ~"Univers, @{test}";
family: @family;
}