mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-20 08:25:50 +08:00
up
This commit is contained in:
@@ -41,6 +41,14 @@ function _M.new(self)
|
||||
end
|
||||
|
||||
|
||||
-- function _M.getInstance(self)
|
||||
-- if rawget(self, "instance") == nil then
|
||||
-- rawset(self, "instance", self.new())
|
||||
-- end
|
||||
-- assert(self.instance ~= nil)
|
||||
-- return self.instance
|
||||
-- end
|
||||
|
||||
function _M.getInstance(self)
|
||||
if self.instance == nil then
|
||||
self.instance = self:new()
|
||||
|
||||
Reference in New Issue
Block a user