View Single Post
04/29/15, 12:06 PM   #42
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 578
Originally Posted by Ayantir View Post
Didn't know that if I do

Lua Code:
  1. if not LibMainMenu then return end

Code after will be executed anyway ..
It depends on the loading order. You may lucky or not
It works like this:
Every embedded lib tries to register itself as the newest. The first (not the newest) is newer than nothing, second may newer as the first or not, and so on.
After all addons are loaded, the functions of the newest are registered.
Any code execution before the EVENT_ADDON_LOADED events get triggered, can cause trouble.
LibAddonMenu before r17 had the same problem.
  Reply With Quote