ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Let's get rid of LibStub! (https://www.esoui.com/forums/showthread.php?t=8492)

Marazota 08/15/20 03:52 PM

Quote:

Originally Posted by Rhyono (Post 42115)
You'll have to remove the LibStub dependency from there too.

in the library, i changed manifest like in step 1)
also this

Code:

local MAJOR, MINOR = "LibEventHandler-1.1", 1.0
local LEH, LEHminor = LibStub:NewLibrary(MAJOR, MINOR)
if not LEH then return end

to this

Code:

local MAJOR, MINOR = "LibEventHandler", 1.1
local LEH, LEHminor = LibStub:NewLibrary(MAJOR, MINOR)
if not LEH then return end

LibEventHandler = LEH, LEHminor

now i am getting another error

Code:

user:/AddOns/InventoryAssistant/InventoryAssistant.lua:654: attempt to index a nil value
stack traceback:
user:/AddOns/InventoryAssistant/InventoryAssistant.lua:654: in function 'IA_InventoryAssistant:InitializeSettingsMenu'
|caaaaaa<Locals> self = [table:1]{showFCOISGearSetMarkers = T, showEnchants = T, onlyMarkedItems = F, showBound = T, showItemLevels = T, onlyNonCP160 = F, onlyDuplicates = F, onlyCP160 = F, showNonSetItems = T, onlyLoots = F, showMonsterSets = T, showCrafted = T, groupLoots = T, showBuyable = T, showFCOISDynamicMarkers = T} </Locals>|r
user:/AddOns/InventoryAssistant/InventoryAssistant.lua:502: in function 'eventToFunctionTable'
|caaaaaa<Locals> event = 65536, addonName = "InventoryAssistant" </Locals>|r
user:/AddOns/InventoryAssistant/libs/LibEventHandler/LibEventHandler.lua:15: in function 'CallEventFunctions'
|caaaaaa<Locals> eventCode = 65536, numOfFuncs = 1, i = 1 </Locals>|r



All times are GMT -6. The time now is 10:13 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI