Move refresh logic out of the generic frame factory

This commit is contained in:
tekkub ʕ ´ᴥ` ʔ
2016-09-11 19:45:02 -06:00
parent 1809a8e116
commit 4accb650c6
2 changed files with 6 additions and 5 deletions

View File

@ -95,7 +95,6 @@ function ns.NewScrollBar(parent, offset, step)
local value = self:GetValue()
if value == min then up:Disable() else up:Enable() end
if value == max then down:Disable() else down:Enable() end
if self.Refresh then self:Refresh() end
end
f:HookScript("OnMinMaxChanged", UpdateUpDown)