From b82625f6a51b6df0a0f9c7550f18ad212ec5d520 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:50:25 +0900 Subject: [PATCH] fixing --- src/class.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/class.lua b/src/class.lua index 893e439..939d6ad 100644 --- a/src/class.lua +++ b/src/class.lua @@ -153,21 +153,21 @@ function module.init(shared) end local this = defaultProperties or {}; setmetatable(this,{ - __call = function (self,prop) + __call = function (self,prop,...) local propType = type(prop); if propType == "string" then local lastName = prop; - return function (nprop) + return function (nprop,...) nprop = nprop or {}; nprop.Name = lastName; - local item = make(ClassName,nprop,this); + local item = make(ClassName,nprop,...,this); addObject(lastName,item); return item; end; elseif propType == "nil" then return make(ClassName,this); end - return make(ClassName,prop,this); + return make(ClassName,prop,...,this); end; }); return this;