diff --git a/src/class.lua b/src/class.lua index 76edffb..408811f 100644 --- a/src/class.lua +++ b/src/class.lua @@ -117,7 +117,7 @@ function module.init(shared) -- this is will keep reference from week table until -- inscance got GCed item:GetPropertyChangedSignal("ClassName"):Connect(regFn); - elseif (valueType == "function" or valueType == "table") and bind(item,index,value,valueType) then -- connect event + elseif (valueType == "function" or valueType == "table") and indexType == "string" and bind(item,index,value,valueType) then -- connect event -- event binding elseif indexType == "string" then -- prop set