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
|
end
|
||||||
|
|
||||||
function beholder:trigger(event,...)
|
function beholder:trigger(event,...)
|
||||||
local actions = self._nodes[event] or {}
|
local node = findNode(self, event) or {}
|
||||||
for _,action in pairs(actions) do
|
for _,action in pairs(node) do
|
||||||
action(...)
|
action(...)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user