I have this code in my main.lua and want to check if I can still use it without problems because it is based on a very old Corona tutorial:
local oldRemove = display.remove display.remove = function( o ) if o ~= nil then Runtime:removeEventListener( "enterFrame", o ) oldRemove( o ) o = nil end end
Is it still okay to use when using the display.remove inside the rest of the code?

I guess this once was helpful so I always used a basic main.lua where this already was in.