Default empty props
This commit is contained in:
@@ -173,6 +173,9 @@ return {
|
|||||||
Container = function(base, basalt)
|
Container = function(base, basalt)
|
||||||
local object = {
|
local object = {
|
||||||
loadLayout = function(self, path, props)
|
loadLayout = function(self, path, props)
|
||||||
|
if (props == nil) then
|
||||||
|
props = {}
|
||||||
|
end
|
||||||
local layout = basalt.layout(path)
|
local layout = basalt.layout(path)
|
||||||
local objects = basalt.createObjectsFromLayout(layout, props)
|
local objects = basalt.createObjectsFromLayout(layout, props)
|
||||||
for _, object in ipairs(objects) do
|
for _, object in ipairs(objects) do
|
||||||
|
|||||||
Reference in New Issue
Block a user