Preserve lowercase first char behaviour
This commit is contained in:
@@ -127,7 +127,8 @@ return {
|
|||||||
})
|
})
|
||||||
objects = basalt.createObjectsFromLayout(layout, props)
|
objects = basalt.createObjectsFromLayout(layout, props)
|
||||||
else
|
else
|
||||||
local object = basalt:createObject(node.tag, node.attributes["id"])
|
local objectName = node.tag:gsub("^%l", string.upper)
|
||||||
|
local object = basalt:createObject(objectName, node.attributes["id"])
|
||||||
for attribute, expression in pairs(node.attributes) do
|
for attribute, expression in pairs(node.attributes) do
|
||||||
if (attribute:sub(1, 2) == "on") then
|
if (attribute:sub(1, 2) == "on") then
|
||||||
registerFunctionEvent(object, object[attribute], expression .. "()", env)
|
registerFunctionEvent(object, object[attribute], expression .. "()", env)
|
||||||
|
|||||||
Reference in New Issue
Block a user