summaryrefslogtreecommitdiff
path: root/xmake/core/ui/view.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/ui/view.lua')
-rw-r--r--xmake/core/ui/view.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/ui/view.lua b/xmake/core/ui/view.lua
index ef5c5d64a..23a3faa87 100644
--- a/xmake/core/ui/view.lua
+++ b/xmake/core/ui/view.lua
@@ -345,8 +345,8 @@ function view:action(name)
end
-- set action
-function view:action_set(name, action)
- self._ACTIONS[name] = action
+function view:action_set(name, on_action)
+ self._ACTIONS[name] = on_action
return self
end