This commit is contained in:
Enrique García 2011-10-27 00:24:25 +02:00
parent f88cbf584d
commit 5f0009605c

View File

@ -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