In this corona tutorial:
https://coronalabs.com/blog/2014/04/08/widgets-creating-a-sliding-panel/
and a few others, the widget library is extended with a new function
function widget.newPanel( options ) local customOptions = options or {} local opt = {} opt.location = customOptions.location or "top" etc...
Where is the best place to put this code? Right now I have put it in main.lua, and it works completely fine when I add it in in the other scenes. However, it seems a bit messy to put it there - could I move to another file or is there a better way?
Thanks