Framework Update and Removed Debug String

This commit is contained in:
Tercio Jose
2023-12-29 17:21:09 -03:00
parent dfc31a4aa5
commit 64675e2f71
5 changed files with 120 additions and 12 deletions
+16 -1
View File
@@ -1,6 +1,6 @@
local dversion = 496
local dversion = 497
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary(major, minor)
@@ -523,6 +523,21 @@ function DF.table.find(t, value)
end
end
---find a value inside a sub table
---@param index number
---@param value any
---@return integer|nil
function DF.table.findsubtable(t, index, value)
for i = 1, #t do
if (type(t[i]) == "table") then
if (t[i][index] == value) then
return i
end
end
end
end
function DF:GetParentKeyPath(object)
local parentKey = object:GetParentKey()
if (not parentKey) then