Changes between Version 3 and Version 4 of documentation/LuaManual/AttachingToEvents
- Timestamp:
- 05/20/12 04:40:44 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
documentation/LuaManual/AttachingToEvents
v3 v4 3 3 4 4 == Statically in RML == 5 The easiest way to attach to events with Lua is to write your code directly into the RML files, using the on* attributes. When the event is fired three global variables are set up, ''document'', ''event'' and ''element''.5 The easiest way to attach to events with Lua is to write your code directly into the RML files, using the on* attributes. When the event is fired three local variables are set up, ''document'', ''event'' and ''element''. 6 6 7 7 ||[wiki:documentation/LuaManual/Elements element]||The element that is currently being processed||