This is a hard bug to duplicate, but basically if you don’t include the onEvent in the widget button constructor, you seem to be only able to set it in main.lua vs. another file. I can put prints before and after that shows it works fine in main.lua, but as soon as I try passing that button as a reference to another file and setting it’s onEvent, it doesn’t work, no error is raised. Additionally, if I set it in main.lua, and try to overwrite in another file, that too fails. It seems like it’s write-once or something.
[import]uid: 23693 topic_id: 13426 reply_id: 313426[/import]