mirror of
https://github.com/less/less.js.git
synced 2026-02-09 06:25:24 -05:00
14 lines
426 B
JavaScript
14 lines
426 B
JavaScript
function initRhinoTest() {
|
|
process = { title: 'dummy' };
|
|
|
|
less.tree.functions.add = function (a, b) {
|
|
return new(less.tree.Dimension)(a.value + b.value);
|
|
};
|
|
less.tree.functions.increment = function (a) {
|
|
return new(less.tree.Dimension)(a.value + 1);
|
|
};
|
|
less.tree.functions._color = function (str) {
|
|
if (str.value === "evil red") { return new(less.tree.Color)("600"); }
|
|
};
|
|
}
|