From cdc11d4c2b3fa5082d8d2b10546a6be38f5d3cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=84=B8=EC=A0=A4=EA=B7=80=20=EA=B3=A0=EC=96=91=EC=9D=B4?= =?UTF-8?q?=EB=93=A4?= <46598063+qwreey75@users.noreply.github.com> Date: Fri, 24 Dec 2021 22:18:48 +0900 Subject: [PATCH] fixing something --- src/class.lua | 6 +++--- src/init.lua | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/class.lua b/src/class.lua index 0f211fa..f8583d8 100644 --- a/src/class.lua +++ b/src/class.lua @@ -99,10 +99,10 @@ function module.init(shared) local with = value.wfunc; local tstore = value.store; local rawKey = value.key; - local set = store[rawKey]; + local set = tstore[rawKey]; if set or (rawKey:match(",") and with) then if with then - set = with(item,tstore,set,value.key); + set = with(tstore,set,value.key,item); end setProperty(item,index,set,ClassName); else @@ -120,7 +120,7 @@ function module.init(shared) newValue = from[newValue]; end if with then - newValue = with(item,tstore,newValue,key); + newValue = with(tstore,newValue,key,item); end if tween then if not advancedTween then diff --git a/src/init.lua b/src/init.lua index a8c770c..40a6889 100644 --- a/src/init.lua +++ b/src/init.lua @@ -61,4 +61,8 @@ function module.init(id) return this; end +function module.uninit(id) + idSpace[id] = nil; +end + return module;