refactoring
This commit is contained in:
+14
-4
@@ -1,9 +1,19 @@
|
||||
aux 'auctions_tab' local scan = aux.scan
|
||||
aux_auctions_tab = module
|
||||
|
||||
include (green_t)
|
||||
include (aux)
|
||||
include (aux_util)
|
||||
include (aux_control)
|
||||
include (aux_util_color)
|
||||
|
||||
TAB 'Auctions'
|
||||
|
||||
local scan = aux_scan
|
||||
|
||||
private.auction_records = t
|
||||
|
||||
function LOAD()
|
||||
create_frames()
|
||||
aux_auctions_tab_frame.create()
|
||||
end
|
||||
|
||||
function OPEN()
|
||||
@@ -51,7 +61,7 @@ end
|
||||
|
||||
function private.test(record)
|
||||
return function(index)
|
||||
local auction_info = aux.info.auction(index, 'owner')
|
||||
local auction_info = aux_info.auction(index, 'owner')
|
||||
return auction_info and auction_info.search_signature == record.search_signature
|
||||
end
|
||||
end
|
||||
@@ -67,7 +77,7 @@ do
|
||||
|
||||
scan.abort(scan_id)
|
||||
state = SEARCHING
|
||||
scan_id = aux.scan_util.find(
|
||||
scan_id = aux_scan_util.find(
|
||||
record,
|
||||
status_bar,
|
||||
function() state = IDLE end,
|
||||
|
||||
Reference in New Issue
Block a user