From 90c2847d81b1911486a6e829343c4c73c7fb3c9f Mon Sep 17 00:00:00 2001 From: Crum Date: Tue, 30 Jan 2018 20:56:03 -0600 Subject: [PATCH] cleanup --- 2/3/4/5/6/7/ElvUI/Libraries/AceTimer-3.0/AceTimer-3.0.lua | 8 ++++---- .../6/7/ElvUI_Config/Libraries/AceGUI-3.0/AceGUI-3.0.lua | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/2/3/4/5/6/7/ElvUI/Libraries/AceTimer-3.0/AceTimer-3.0.lua b/2/3/4/5/6/7/ElvUI/Libraries/AceTimer-3.0/AceTimer-3.0.lua index d08ec5e..0bd4b9f 100644 --- a/2/3/4/5/6/7/ElvUI/Libraries/AceTimer-3.0/AceTimer-3.0.lua +++ b/2/3/4/5/6/7/ElvUI/Libraries/AceTimer-3.0/AceTimer-3.0.lua @@ -159,8 +159,8 @@ end -- new, del -- function MyAddOn:TimerFeedback() -- print("5 seconds passed") -- end -function AceTimer:ScheduleTimer(func, delay, argc,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) - return new(self, nil, func, delay, argc,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) +function AceTimer:ScheduleTimer(func, delay, argc, ...) + return new(self, nil, func, delay, argc, unpack(arg)) end --- Schedule a repeating timer. @@ -185,8 +185,8 @@ end -- self:CancelTimer(self.testTimer) -- end -- end -function AceTimer:ScheduleRepeatingTimer(func, delay, argc,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) - return new(self, true, func, delay, argc,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) +function AceTimer:ScheduleRepeatingTimer(func, delay, argc, ...) + return new(self, true, func, delay, argc, unpack(arg)) end --- Cancels a timer with the given id, registered by the same addon object as used for `:ScheduleTimer` diff --git a/2/3/4/5/6/7/ElvUI_Config/Libraries/AceGUI-3.0/AceGUI-3.0.lua b/2/3/4/5/6/7/ElvUI_Config/Libraries/AceGUI-3.0/AceGUI-3.0.lua index 7e3baa1..3b8340f 100644 --- a/2/3/4/5/6/7/ElvUI_Config/Libraries/AceGUI-3.0/AceGUI-3.0.lua +++ b/2/3/4/5/6/7/ElvUI_Config/Libraries/AceGUI-3.0/AceGUI-3.0.lua @@ -255,11 +255,11 @@ do end end - WidgetBase.Fire = function(self,name,argc,...) + WidgetBase.Fire = function(self, name, argc, ...) argc = table.getn(arg) local func = self.events[name] if func then - local success, ret = safecall(func,argc+3,self,name,argc,unpack(arg)) + local success, ret = safecall(func, argc+3, self, name, argc, unpack(arg)) if success then return ret end