Refactor progress handling

probably some regressions
This commit is contained in:
NoM0Re
2025-01-22 03:37:10 +01:00
parent a643b275ba
commit 23c7da5ea6
29 changed files with 2037 additions and 1263 deletions
+7 -9
View File
@@ -4,7 +4,12 @@ local AddonName, Private = ...
local WeakAuras = WeakAuras
local L = WeakAuras.L
local SubscribableObject ={
local SubscribableObject =
{
events = {},
subscribers = {},
callbacks = {},
ClearSubscribers = function(self)
self.events = {}
self.subscribers = {}
@@ -76,12 +81,5 @@ local SubscribableObject ={
}
function Private.CreateSubscribableObject()
local system = {}
for f, func in pairs(SubscribableObject) do
system[f] = func
system.events = {}
system.subscribers = {}
system.callbacks = {}
end
return system
return CopyTable(SubscribableObject)
end