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) ? ',' : ', ');
}
}
},