mirror of
https://github.com/kikito/beholder.lua.git
synced 2024-12-16 00:34:21 +00:00
refactor
This commit is contained in:
parent
f88cbf584d
commit
5f0009605c
@ -53,8 +53,8 @@ function beholder:stopObserving(id)
|
||||
end
|
||||
|
||||
function beholder:trigger(event,...)
|
||||
local actions = self._nodes[event] or {}
|
||||
for _,action in pairs(actions) do
|
||||
local node = findNode(self, event) or {}
|
||||
for _,action in pairs(node) do
|
||||
action(...)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user