fix erroring when object has no parent

This commit is contained in:
Marcus
2023-06-07 19:37:03 -04:00
committed by GitHub
parent 1339337e6e
commit 61521bd1c7

View File

@@ -110,7 +110,7 @@ return function(name, basalt)
objId = 0
evId = 0
focusedChild = nil
parent:removeEvents(self)
if parent ~= nil then parent:removeEvents(self) end
end
local function updateZIndex(self, element, newZ)
@@ -426,4 +426,4 @@ return function(name, basalt)
container.__index = container
return setmetatable(container, base)
end
end