function Foo:new(o, parent)
o = o or {}
setmetatable(o, self)
self.__index = self
o.eventID = registerAnonymousEventHandler("Bar", function() o:update() end)
return o
endfunction Foo:new(o, parent)
o = o or {}
setmetatable(o, self)
self.__index = self
o.eventID = registerAnonymousEventHandler("Bar", function() o:update() end)
return o
end