Thread
:
Any way to get the addon object that called a library function?
View Single Post
10/21/16, 08:07 PM
#
4
Ayantir
Join Date: Jul 2014
Posts: 1,019
pass it as argument?..
Lua Code:
local
myAddon
local
LIB
=
LibStub
(
"Library"
)
LIB:Init
(
myAddon
)
After if you need the addon object in your library, you maybe have a conception error. a lib should be addon independant.
Ayantir
View Public Profile
Send a private message to Ayantir
Visit Ayantir's homepage!
Find More Posts by Ayantir