From 96766a3ce42541287b535b2266b82ff0f23684a9 Mon Sep 17 00:00:00 2001 From: g1mmethemoney Date: Sat, 6 Apr 2024 00:18:06 +0300 Subject: [PATCH] feat: pass all 3 arguments required by Janitor:Add() --- src/Icon/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Icon/init.lua b/src/Icon/init.lua index 1ca5c4c..f6070ac 100644 --- a/src/Icon/init.lua +++ b/src/Icon/init.lua @@ -913,8 +913,8 @@ function Icon:call(callback, ...) return self end -function Icon:addToJanitor(callback) - self.janitor:add(callback) +function Icon:addToJanitor(object, methodName, index) + self.janitor:add(object, methodName, index) return self end