Originally Posted by Vrul
Menu:SetScript('OnLeave', Menu.Hide)
|
Why this works and what it does:
You're setting the frame handler to be the
:Hide() metamethod. As this isn't a function call, just passing a function pointer, it loses the internal
self argument. Frames just happen to push themselves as the first argument to their handlers, so everything works out anyway.