refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-10-29 01:50:53 +02:00
parent 608e25256c
commit 3617db967b
+1 -12
View File
@@ -841,12 +841,6 @@ local methods = {
end end
end, end,
-- ============================================================================
-- General Results Table Methods
-- ============================================================================
Reset = function(rt) Reset = function(rt)
wipe(rt.expanded) wipe(rt.expanded)
rt:UpdateRowInfo() rt:UpdateRowInfo()
@@ -854,15 +848,11 @@ local methods = {
rt:SetSelectedRecord() rt:SetSelectedRecord()
end, end,
SetDatabase = function(rt, database, filterFunc, filterHash) SetDatabase = function(rt, database)
if database and database ~= rt.records then if database and database ~= rt.records then
rt.records = database rt.records = database
end end
-- rt.dbView:SetFilter(filterFunc, filterHash)
-- elseif filterFunc then
-- rt.dbView:SetFilter(filterFunc, filterHash) -- TODO
-- get index of selected row -- get index of selected row
local prevSelectedIndex local prevSelectedIndex
if rt.selected then if rt.selected then
@@ -1016,7 +1006,6 @@ function M.CreateAuctionResultsTable(parent, config)
local contentFrame = CreateFrame('Frame', nil, rt) local contentFrame = CreateFrame('Frame', nil, rt)
contentFrame:SetPoint('TOPLEFT', 0, 0) contentFrame:SetPoint('TOPLEFT', 0, 0)
contentFrame:SetPoint('BOTTOMRIGHT', -15, 0) contentFrame:SetPoint('BOTTOMRIGHT', -15, 0)
-- contentFrame:SetScript('OnSizeChanged', rt.OnContentSizeChanged)
rt.contentFrame = contentFrame rt.contentFrame = contentFrame
-- frame to hold the header columns and the rows -- frame to hold the header columns and the rows