- framework update.
This commit is contained in:
+13
-2
@@ -1,5 +1,5 @@
|
||||
|
||||
local dversion = 12
|
||||
local dversion = 13
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary (major, minor)
|
||||
|
||||
@@ -205,6 +205,10 @@ function DF:Embed (target)
|
||||
return target
|
||||
end
|
||||
|
||||
function DF:RemoveRealmName (name)
|
||||
return name:gsub (("%-.*"), "")
|
||||
end
|
||||
|
||||
function DF:RemoveRealName (name)
|
||||
return name:gsub (("%-.*"), "")
|
||||
end
|
||||
@@ -878,4 +882,11 @@ function DF:GetTemplate (type, template_name)
|
||||
end
|
||||
return template_table [template_name]
|
||||
end
|
||||
|
||||
|
||||
function DF.GetParentName (frame)
|
||||
local parentName = frame:GetName()
|
||||
if (not parentName) then
|
||||
error ("Details! FrameWork: called $parent but parent was no name.", 2)
|
||||
end
|
||||
return parentName
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user