diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/object2.nom | 4 |
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]; |
