Small bugfix

Fixed a bug where frames incorrectly remove their own events in parent frames
This commit is contained in:
Robert Jelic
2022-08-30 20:17:00 +02:00
parent 23b94d076b
commit c977410a41

View File

@@ -138,7 +138,7 @@ return function(name, parent, pTerm, basalt)
if (value == obj) then
table.remove(events[a][c], key)
if(self.parent~=nil)then
if(tableCount(events[event])<=0)then
if(tableCount(events[a])<=0)then
self.parent:removeEvent(a, self)
end
end