Small bugfix
Fixed a bug where frames incorrectly remove their own events in parent frames
This commit is contained in:
@@ -138,7 +138,7 @@ return function(name, parent, pTerm, basalt)
|
|||||||
if (value == obj) then
|
if (value == obj) then
|
||||||
table.remove(events[a][c], key)
|
table.remove(events[a][c], key)
|
||||||
if(self.parent~=nil)then
|
if(self.parent~=nil)then
|
||||||
if(tableCount(events[event])<=0)then
|
if(tableCount(events[a])<=0)then
|
||||||
self.parent:removeEvent(a, self)
|
self.parent:removeEvent(a, self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user