runner-main-options.js 399 B

1234567891011121314151617
  1. var less = {
  2. logLevel: 4,
  3. errorReporting: 'console'
  4. };
  5. less.functions = {
  6. add: function(a, b) {
  7. return new(less.tree.Dimension)(a.value + b.value);
  8. },
  9. increment: function(a) {
  10. return new(less.tree.Dimension)(a.value + 1);
  11. },
  12. _color: function(str) {
  13. if (str.value === 'evil red') {
  14. return new(less.tree.Color)('600');
  15. }
  16. }
  17. };