fixed some error
This commit is contained in:
parent
833d219cb4
commit
3f8b0a4570
1 changed files with 8 additions and 4 deletions
|
|
@ -33,10 +33,12 @@ local _,advancedTween = pcall(require,"src.libs.AdvancedTween"); ---@module src.
|
||||||
|
|
||||||
local idSpace = {};
|
local idSpace = {};
|
||||||
function module.init(id)
|
function module.init(id)
|
||||||
|
if id then
|
||||||
local last = idSpace[id];
|
local last = idSpace[id];
|
||||||
if last then
|
if last then
|
||||||
return last;
|
return last;
|
||||||
end
|
end
|
||||||
|
end
|
||||||
local this = {items = {}};
|
local this = {items = {}};
|
||||||
|
|
||||||
this.require = require;
|
this.require = require;
|
||||||
|
|
@ -51,7 +53,9 @@ function module.init(id)
|
||||||
--this.tween = tween;
|
--this.tween = tween;
|
||||||
--this.plugin = plugin;
|
--this.plugin = plugin;
|
||||||
|
|
||||||
|
if id then
|
||||||
idSpace[id] = this;
|
idSpace[id] = this;
|
||||||
|
end
|
||||||
return this;
|
return this;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue