Fix merge issues and a code review comment. revert unit change that outputs px*px as it is not valid css

This commit is contained in:
Luke Page
2013-01-23 21:43:39 +00:00
parent e6ea7b42ab
commit 3b5ecf5421
4 changed files with 20 additions and 19 deletions

View File

@@ -621,11 +621,10 @@ less.Parser = function Parser(env) {
args = $(this.entities.arguments);
parens--;
if (! $(')')) {
parens--;
return;
}
parens--;
if (name) { return new(tree.Call)(name, args, index, env.filename, env.rootpath) }
},

View File

@@ -166,11 +166,13 @@ tree.Unit.prototype = {
},
toCSS: function () {
var i, css = this.numerator.join("*");
for (i = 0; i < this.denominator.length; i++) {
css += "/" + this.denominator[i];
if (this.numerator.length >= 1) {
return this.numerator[0];
}
return css;
if (this.denominator.length >= 1) {
return this.denominator[0];
}
return "";
},
compare: function (other) {