mirror of
https://github.com/less/less.js.git
synced 2026-01-24 06:38:05 -05:00
9 lines
239 B
JavaScript
9 lines
239 B
JavaScript
node.Operation = function Operation(op, operands) {
|
|
this.op = op.trim();
|
|
this.operands = operands;
|
|
};
|
|
node.Operation.prototype.eval = function (env) {
|
|
return this.operands[0].eval(env)[this.op](this.operands[1].eval(env));
|
|
};
|
|
|