module refactoring

This commit is contained in:
Manuel Simon Hirsig
2017-11-25 17:53:39 +01:00
parent 6f71167e48
commit ab94acc2be
38 changed files with 402 additions and 453 deletions
+4 -6
View File
@@ -1,13 +1,11 @@
module 'aux.tabs.auctions'
include 'aux'
local T = require 'T'
local aux = require 'aux'
local scan_util = require 'aux.util.scan'
local scan = require 'aux.core.scan'
local tab = TAB 'Auctions'
local tab = aux.tab 'Auctions'
auction_records = T.acquire()
@@ -75,7 +73,7 @@ do
cancel_button:SetScript('OnClick', function()
if scan_util.test(record, index) and listing:ContainsRecord(record) then
cancel_auction(index, function() listing:RemoveAuctionRecord(record) end)
aux.cancel_auction(index, function() listing:RemoveAuctionRecord(record) end)
end
end)
cancel_button:Enable()
@@ -97,7 +95,7 @@ do
find_auction(selection.record)
elseif state == FOUND and not scan_util.test(selection.record, found_index) then
cancel_button:Disable()
if not cancel_in_progress() then state = IDLE end
if not aux.cancel_in_progress() then state = IDLE end
end
end
end