Thread Tools Display Modes
07-01-15, 10:56 AM   #1
bsmorgan
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 219
Updating LibPeriodicTable

A good many addons have all or part of LibPeriodicTable included in their distribution. If I install LibPeriodicTable as a separate addon and keep it updated. Will all the other addons use the updated version or will they use whatever version they have included in their distribution?

If all addons use the updated version, can someone explain (or point me to an explanation of) how this works?

Last edited by bsmorgan : 07-01-15 at 11:00 AM.
  Reply With Quote
07-01-15, 11:44 AM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
LibStub is what most (if not all, by now) libraries use as a version manager. Every copy of LibPeriodicTable in your addon folder registers itself with LibStub as it loads. If the version currently registering has a higher minor version number (be sure to change this at/near the top of the library files) that was has previously been loaded, LibStub allows it to overwrite was was previously there. If it is a lower minor version, LibStub exits out and preserves the more recent version in memory.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Updating LibPeriodicTable

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off