Skip to content

Commit

Permalink
Merge pull request #237 from p3lim-wow/ExposeHeaders
Browse files Browse the repository at this point in the history
core: Expose the headers
  • Loading branch information
haste committed Nov 8, 2014
2 parents fe7b1c8 + 678dca9 commit ecce856
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ouf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local print = Private.print
local error = Private.error

local styles, style = {}
local callback, objects = {}, {}
local callback, objects, headers = {}, {}, {}

local elements = {}
local activeElements = {}
Expand Down Expand Up @@ -512,6 +512,9 @@ do
header.style = style
header.styleFunction = styleProxy

-- Expose the header through oUF.headers.
table.insert(headers, header)

-- We set it here so layouts can't directly override it.
header:SetAttribute('initialConfigFunction', initialConfigFunction)
header:SetAttribute('oUF-headerType', isPetHeader and 'pet' or 'group')
Expand Down Expand Up @@ -573,6 +576,7 @@ end

oUF.version = _VERSION
oUF.objects = objects
oUF.headers = headers

if(global) then
if(parent ~= 'oUF' and global == 'oUF') then
Expand Down

0 comments on commit ecce856

Please sign in to comment.