QuickApp:onInit() is run after the whole file is loaded so it can be anywhere.   Fibaro does something like... loadFile("QA file")    -- Everything in the file is run - all functions and globals are defined (also locals on "top level"). local self = QuickApp() -- Now all methods are defined, create an instance if self.onInit() then self:onInit() end -- If the user declared an :onInit call it quickApp = qa -- Set the globaö 'quickApp' to the current QuickApp self. S
    • Like
    1