Thread: Libraries
View Single Post
04/27/14, 05:34 AM   #2
thelegendaryof
 
thelegendaryof's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 161
Thats what the minor is for. If you have a look at the source:

Lua Code:
  1. local oldminor = self.minors[major]
  2. if oldminor and oldminor >= minor then return nil end

So the one with the highest minor gets loaded in the end and all other instances are deleted/overwritten.

Also see here:
http://www.wowace.com/addons/libstub/

Cheers
  Reply With Quote