fixing
This commit is contained in:
parent
acc8f403e7
commit
b82625f6a5
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue