Add druid events in components

This commit is contained in:
Insality
2020-02-24 09:34:16 +03:00
parent a81d49de9d
commit ac2bbc29d3
15 changed files with 1019 additions and 32 deletions

View File

@@ -20,10 +20,8 @@ function M.init(self, node, context, on_hover_callback)
self._is_hovered = false
self.context = context
self.on_hover = Event()
if on_hover_callback then
self.on_hover:subscribe(on_hover_callback)
end
self.on_hover = Event(on_hover_callback)
end