Change API on less object to lowercase

This commit is contained in:
Matthew Dean
2017-10-08 18:43:10 -07:00
parent 488e0fcbdf
commit 0d7ec6bb70

View File

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