fixing something
This commit is contained in:
parent
a74c7842b1
commit
cdc11d4c2b
2 changed files with 7 additions and 3 deletions
|
|
@ -99,10 +99,10 @@ function module.init(shared)
|
||||||
local with = value.wfunc;
|
local with = value.wfunc;
|
||||||
local tstore = value.store;
|
local tstore = value.store;
|
||||||
local rawKey = value.key;
|
local rawKey = value.key;
|
||||||
local set = store[rawKey];
|
local set = tstore[rawKey];
|
||||||
if set or (rawKey:match(",") and with) then
|
if set or (rawKey:match(",") and with) then
|
||||||
if with then
|
if with then
|
||||||
set = with(item,tstore,set,value.key);
|
set = with(tstore,set,value.key,item);
|
||||||
end
|
end
|
||||||
setProperty(item,index,set,ClassName);
|
setProperty(item,index,set,ClassName);
|
||||||
else
|
else
|
||||||
|
|
@ -120,7 +120,7 @@ function module.init(shared)
|
||||||
newValue = from[newValue];
|
newValue = from[newValue];
|
||||||
end
|
end
|
||||||
if with then
|
if with then
|
||||||
newValue = with(item,tstore,newValue,key);
|
newValue = with(tstore,newValue,key,item);
|
||||||
end
|
end
|
||||||
if tween then
|
if tween then
|
||||||
if not advancedTween then
|
if not advancedTween then
|
||||||
|
|
|
||||||
|
|
@ -61,4 +61,8 @@ function module.init(id)
|
||||||
return this;
|
return this;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function module.uninit(id)
|
||||||
|
idSpace[id] = nil;
|
||||||
|
end
|
||||||
|
|
||||||
return module;
|
return module;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue