|
1 | 1 | /*!
|
2 |
| - * Less - Leaner CSS v3.0.0-alpha.3 |
| 2 | + * Less - Leaner CSS v3.0.0-RC.1 |
3 | 3 | * http://lesscss.org
|
4 | 4 | *
|
5 |
| - * Copyright (c) 2009-2017, Alexis Sellier <self@cloudhead.net> |
| 5 | + * Copyright (c) 2009-2018, Alexis Sellier <self@cloudhead.net> |
6 | 6 | * Licensed under the Apache-2.0 License.
|
7 | 7 | *
|
8 | 8 | */
|
@@ -2872,13 +2872,13 @@ module.exports = function(environment, fileManagers) {
|
2872 | 2872 | /* eslint guard-for-in: 0 */
|
2873 | 2873 | t = initial.tree[n];
|
2874 | 2874 | if (typeof t === "function") {
|
2875 |
| - api[n] = ctor(t); |
| 2875 | + api[n.toLowerCase()] = ctor(t); |
2876 | 2876 | }
|
2877 | 2877 | else {
|
2878 | 2878 | api[n] = Object.create(null);
|
2879 | 2879 | for (var o in t) {
|
2880 | 2880 | /* eslint guard-for-in: 0 */
|
2881 |
| - api[n][o] = ctor(t[o]); |
| 2881 | + api[n][o.toLowerCase()] = ctor(t[o]); |
2882 | 2882 | }
|
2883 | 2883 | }
|
2884 | 2884 | }
|
@@ -3600,7 +3600,8 @@ var LessError = require('../less-error'),
|
3600 | 3600 | tree = require("../tree"),
|
3601 | 3601 | visitors = require("../visitors"),
|
3602 | 3602 | getParserInput = require("./parser-input"),
|
3603 |
| - utils = require("../utils"); |
| 3603 | + utils = require("../utils"), |
| 3604 | + functionRegistry = require('../functions/function-registry'); |
3604 | 3605 |
|
3605 | 3606 | //
|
3606 | 3607 | // less.js - parser
|
@@ -3783,6 +3784,7 @@ var Parser = function Parser(context, imports, fileInfo) {
|
3783 | 3784 | tree.Node.prototype.rootNode = root;
|
3784 | 3785 | root.root = true;
|
3785 | 3786 | root.firstRoot = true;
|
| 3787 | + root.functionRegistry = functionRegistry.inherit(); |
3786 | 3788 |
|
3787 | 3789 | } catch (e) {
|
3788 | 3790 | return callback(new LessError(e, imports, fileInfo.filename));
|
@@ -5594,7 +5596,7 @@ Parser.serializeVars = function(vars) {
|
5594 | 5596 |
|
5595 | 5597 | module.exports = Parser;
|
5596 | 5598 |
|
5597 |
| -},{"../less-error":36,"../tree":66,"../utils":88,"../visitors":92,"./parser-input":41}],43:[function(require,module,exports){ |
| 5599 | +},{"../functions/function-registry":26,"../less-error":36,"../tree":66,"../utils":88,"../visitors":92,"./parser-input":41}],43:[function(require,module,exports){ |
5598 | 5600 | var utils = require('./utils');
|
5599 | 5601 | /**
|
5600 | 5602 | * Plugin Manager
|
|
0 commit comments