From 4b3e8369ee5303b654c26cd8986a2288d3f1e2b5 Mon Sep 17 00:00:00 2001 From: Tercio Date: Sat, 14 Oct 2017 16:01:59 -0300 Subject: [PATCH] - framework update to v58 (looks like some author are adding words like 'topleft' and 'top' to the global namespace). --- Libs/DF/fw.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Libs/DF/fw.lua b/Libs/DF/fw.lua index f447ab7d..f4914e82 100644 --- a/Libs/DF/fw.lua +++ b/Libs/DF/fw.lua @@ -1,5 +1,5 @@ -local dversion = 57 +local dversion = 58 local major, minor = "DetailsFramework-1.0", dversion local DF, oldminor = LibStub:NewLibrary (major, minor) @@ -116,6 +116,7 @@ local embed_functions = { "CreateScrollBox", "CreateBorder", "FormatNumber", + "IntegerToTimer", } DF.table = {} @@ -425,13 +426,13 @@ end if (_type (v1) == "string") then local frameGlobal = _G [v1] - if (frameGlobal and frameGlobal.GetObjectType) then + if (frameGlobal and type (frameGlobal) == "table" and frameGlobal.GetObjectType) then return DF:CheckPoints (frameGlobal, v2, v3, v4, v5, object) end elseif (_type (v2) == "string") then local frameGlobal = _G [v2] - if (frameGlobal and frameGlobal.GetObjectType) then + if (frameGlobal and type (frameGlobal) == "table" and frameGlobal.GetObjectType) then return DF:CheckPoints (v1, frameGlobal, v3, v4, v5, object) end end