Files
less.js/lib/less/node/operation.js
cloudhead ad66408b9f init
2010-02-23 13:39:05 -05:00

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));
};