mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Change API on less object to lowercase
This commit is contained in:
@@ -40,13 +40,13 @@ module.exports = function(environment, fileManagers) {
|
||||
/* eslint guard-for-in: 0 */
|
||||
t = initial.tree[n];
|
||||
if (typeof t === "function") {
|
||||
api[n] = ctor(t);
|
||||
api[n.toLowerCase()] = ctor(t);
|
||||
}
|
||||
else {
|
||||
api[n] = Object.create(null);
|
||||
for (var o in t) {
|
||||
/* eslint guard-for-in: 0 */
|
||||
api[n][o] = ctor(t[o]);
|
||||
api[n][o.toLowerCase()] = ctor(t[o]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user