I have always used this declaration which is not affected by the deprecation:
Code:
someframe:SetScript("OnEvent", function(self, event, arg1, arg2, arg3)
end)
TBH I didn't even know these globals existed, and never had any trouble living without them.