aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib
diff options
context:
space:
mode:
authorDavid Walter Seikel2015-03-22 17:45:57 +1000
committerDavid Walter Seikel2015-03-22 17:45:57 +1000
commitaab3088da8df7b9cc7f0e54cc39c170d9b9af39c (patch)
tree67a59b692ebfa38b4f1e9c16bfdaf427a0319057 /lib
parentAdd internal reference for skang modules, so they can find themselves. (diff)
downloadSledjHamr-aab3088da8df7b9cc7f0e54cc39c170d9b9af39c.zip
SledjHamr-aab3088da8df7b9cc7f0e54cc39c170d9b9af39c.tar.gz
SledjHamr-aab3088da8df7b9cc7f0e54cc39c170d9b9af39c.tar.bz2
SledjHamr-aab3088da8df7b9cc7f0e54cc39c170d9b9af39c.tar.xz
Comment about not using locals in actions.
Diffstat (limited to 'lib')
-rw-r--r--lib/skang.lua1
1 files changed, 1 insertions, 0 deletions
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
1069GOAL - GuiLua.c -> _on_click() -> lauL_dostring(L, wid->action) 1069GOAL - GuiLua.c -> _on_click() -> lauL_dostring(L, wid->action)
1070 We want this action to be performed in the environment of the module that created the widget. 1070 We want this action to be performed in the environment of the module that created the widget.
1071 Or the one that set the action. 1071 Or the one that set the action.
1072 NOTE - Can't refer to local variables from within actions.
1072 1073
1073 purkle 1074 purkle
1074 local purkle = require 'purkle' 1075 local purkle = require 'purkle'