diff core.lua @ 47:1070a14cfee4

Updated lib-st widget from WRDW. Properly notice new generating tabs. Updated help text.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Sat, 28 Jan 2012 18:24:22 +0000
parents 1001dd95dbeb
children 22db12e97313
line wrap: on
line diff
--- a/core.lua	Sat Jan 21 01:39:44 2012 +0000
+++ b/core.lua	Sat Jan 28 18:24:22 2012 +0000
@@ -193,7 +193,8 @@
 local g_boss_signpost	= nil
 local opts				= nil
 
-local pairs, ipairs, tinsert, tremove, tonumber = pairs, ipairs, table.insert, table.remove, tonumber
+local pairs, ipairs, tinsert, tremove, tonumber, wipe =
+	pairs, ipairs, table.insert, table.remove, tonumber, table.wipe
 local pprint, tabledump = addon.pprint, flib.tabledump
 local GetNumRaidMembers = GetNumRaidMembers
 -- En masse forward decls of symbols defined inside local blocks
@@ -778,7 +779,7 @@
 		if addon.display then
 			addon:redisplay()
 		end
-		table.wipe(candidates)
+		wipe(candidates)
 	end
 	addon.recent_loot = create_new_cache ('loot', comm_cleanup_ttl+3, prefer_local_loots)
 
@@ -1110,7 +1111,7 @@
 			temp[#temp+1] = k
 		end
 		table.sort(temp)
-		table.wipe(dest)
+		wipe(dest)
 		for i = 1, #temp do
 			dest[i] = src[temp[i]]
 		end
@@ -1118,10 +1119,10 @@
 
 	function addon.sender_list.sort()
 		sort (addon.sender_list.active, byindex)
-		table.wipe(temp)
+		wipe(temp)
 		addon.sender_list.activeI = #byindex
 		sort (addon.sender_list.names, byindex)
-		table.wipe(temp)
+		wipe(temp)
 	end
 	addon.sender_list.namesI = byindex
 end
@@ -1328,7 +1329,7 @@
 				addon:Print("Registered kill for '%s' in %s!", boss.bosskill, boss.instance)
 			end
 		end
-		table.wipe(candidates)
+		wipe(candidates)
 	end
 	addon.recent_boss = create_new_cache ('boss', 10, fixup_durations)