refactored operand(), and take away parsing of -()

This commit is contained in:
cloudhead 2010-03-19 18:05:36 -04:00
parent 9a276481f1
commit ef61aec5f1

View File

@ -795,12 +795,8 @@ less.parser = {
// such as a Color, or a Variable
//
operand: function () {
var o;
if (o = $(this.sub) || $(this.entities.dimension) ||
$(this.entities.color) || $(this.entities.variable) ||
(peek(/-[0-9]/g) && $('-') && $(this.operand))) {
return o;
}
return $(this.sub) || $(this.entities.dimension) ||
$(this.entities.color) || $(this.entities.variable);
},
//