50 | | However, if a function is passed in, then there is one caveat. If the function requires one of the local variables (event,element,document), then that variable ''must'' be in the correct position in the parameters list. The order is the order in the previous sentence: ''event'' first, ''element'' second, ''document'' third. If you only need event, then you can have the function only take one argument. If you need only document, then you must have the other two parameter slots before the document parameter. And, because it is in Lua, they may have any name. |
---|
| 50 | However, if a function is passed in, then there is one caveat. If the function requires one of the local variables (event,element,document), then that variable ''must'' be in the correct position in the parameters list. The order is the order in the previous sentence: ''event'' first, ''element'' second, ''document'' third. If you only need ''event'', then you can have the function only take one argument. If you need only ''document'', then you must have the other two parameter slots before the document parameter. And, because it is in Lua, they may have any name. |
---|