summaryrefslogtreecommitdiff
path: root/xmake/core/ui/panel.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-12-29 23:23:31 +0800
committerruki <[email protected]>2017-12-29 14:21:10 +0800
commitff8b64effa9882573426f4d81f4b492d1328fba3 (patch)
tree243ba68cf5938c0e4ba14ece0b02339d3a2dfa72 /xmake/core/ui/panel.lua
parenteb3805ec6e4e4ae187d0cd7c9082e6c8558a51ee (diff)
remove event register
Diffstat (limited to 'xmake/core/ui/panel.lua')
-rw-r--r--xmake/core/ui/panel.lua11
1 files changed, 2 insertions, 9 deletions
diff --git a/xmake/core/ui/panel.lua b/xmake/core/ui/panel.lua
index c33811bf3..a13c29889 100644
--- a/xmake/core/ui/panel.lua
+++ b/xmake/core/ui/panel.lua
@@ -50,13 +50,6 @@ function panel:init(name, bounds)
self._VIEWS = dlist()
end
--- exit panel
-function panel:exit()
-
- -- exit view
- view.exit(self)
-end
-
-- get all child views
function panel:views()
return self._VIEWS:items()
@@ -251,8 +244,8 @@ function panel:event_on(e)
-- send event to all child views
for v in self:views() do
- if v:event_need(e) then
- v:event_on(e)
+ if v:event_on(e) then
+ return true
end
end
end