And I just use this (or similar)
Lua Code:
-- Set up basic event handler
local function SetEventHandler(addon, frame)
if not frame then
frame = CreateFrame("Frame")
addon.eframe = frame
end
frame:SetScript("OnEvent", function(self, event, ...)
if addon[event] then
addon[event](addon, ...)
end
end)
end
But still. Would be nice to have it built in and standard.