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