diff options
| author | ruki <[email protected]> | 2020-07-17 00:49:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-07-17 00:49:20 +0800 |
| commit | 4b39a01e80756cce66f966c9c5f24fcc3e616704 (patch) | |
| tree | 9f623fd336f2541f7fc7f14f9ef1fd9aa78984e8 | |
| parent | 764e35f2110e9932dfce409ee3949fccfef521ed (diff) | |
improve dlist
| -rw-r--r-- | xmake/core/base/dlist.lua | 4 | ||||
| -rw-r--r-- | xmake/core/ui/panel.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/base/dlist.lua b/xmake/core/base/dlist.lua index 0657538e7..5d616c6c8 100644 --- a/xmake/core/base/dlist.lua +++ b/xmake/core/base/dlist.lua @@ -206,8 +206,8 @@ function dlist:ritems() end -- new dlist -function dlist:new() - return self() +function dlist.new() + return dlist() end -- return module: dlist diff --git a/xmake/core/ui/panel.lua b/xmake/core/ui/panel.lua index 7cff86eff..c876aa412 100644 --- a/xmake/core/ui/panel.lua +++ b/xmake/core/ui/panel.lua @@ -43,7 +43,7 @@ function panel:init(name, bounds) self:option_set("selectable", true) -- init child views - self._VIEWS = dlist:new() + self._VIEWS = dlist.new() -- init views cache self._VIEWS_CACHE = {} |
