aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-02-06 22:06:39 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2018-02-06 22:07:11 -0800
commit3661754ed90e7b85bcfe61d6b44a65436c9c4c3f (patch)
tree3ce18d2e4bf8e910832a4b2634f26523b2788b61 /lib
parente8d5d2a24061347a96ae9feda45ceb0d6dca09be (diff)
Reverted to ACTIONS instead of ACTION and added 'show lua %' macro.
Diffstat (limited to 'lib')
-rw-r--r--lib/object2.nom4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/object2.nom b/lib/object2.nom
index d9e90cc..d27bbc0 100644
--- a/lib/object2.nom
+++ b/lib/object2.nom
@@ -33,8 +33,8 @@ compile [as %instance %body] to:
statements: ".."
do
local self = \(%instance as lua expr);
- local global_actions = ACTION;
- local ACTION = setmetatable({}, {__index=function(_,key)
+ local global_actions = ACTIONS;
+ local ACTIONS = setmetatable({}, {__index=function(_,key)
local method = self[key];
if method then return (function(...) return method(self, ...); end); end
return global_actions[key];