mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Add druid events in components
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user