From aab3088da8df7b9cc7f0e54cc39c170d9b9af39c Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 22 Mar 2015 17:45:57 +1000 Subject: Comment about not using locals in actions. --- lib/skang.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/skang.lua') diff --git a/lib/skang.lua b/lib/skang.lua index 8de692e..854b0e9 100644 --- a/lib/skang.lua +++ b/lib/skang.lua @@ -1069,6 +1069,7 @@ end GOAL - GuiLua.c -> _on_click() -> lauL_dostring(L, wid->action) We want this action to be performed in the environment of the module that created the widget. Or the one that set the action. + NOTE - Can't refer to local variables from within actions. purkle local purkle = require 'purkle' -- cgit v1.1