Mercurial > wow > reaction
changeset 140:497936c503a0
Fixed initialization order crashing bars when hideEmpty selected
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Mon, 13 Apr 2009 20:18:11 +0000 |
parents | 8b35239339c5 |
children | 0de0e64a970f |
files | classes/ActionButton.lua |
diffstat | 1 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/classes/ActionButton.lua Mon Apr 13 17:54:29 2009 +0000 +++ b/classes/ActionButton.lua Mon Apr 13 20:18:11 2009 +0000 @@ -187,16 +187,6 @@ f:SetAttribute("showgrid-event",0) f:SetAttribute("showgrid",not self:GetBarConfig().hideEmpty) - self:Refresh() - - -- attach to skinner - bar:SkinButton(self) - - -- initial display - if ReAction:GetConfigMode() then - self:ShowGridTemp(true) - end - -- non secure scripts f:SetScript("OnEvent", function(frame, ...) self:OnEvent(...) end) f:SetScript("OnEnter", function(frame) self:OnEnter() end) @@ -221,6 +211,16 @@ barFrame:WrapScript(f, "OnDragStart", _onDragStart) barFrame:WrapScript(f, "OnReceiveDrag", _onReceiveDrag) + -- attach to skinner + bar:SkinButton(self) + + -- initial display + if ReAction:GetConfigMode() then + self:ShowGridTemp(true) + end + + self:Refresh() + return self end