This commit is contained in:
kepler155c@gmail.com
2017-10-23 19:33:53 -04:00
parent 22a432492c
commit 84b2b8ce63
6 changed files with 27 additions and 89 deletions

View File

@@ -121,7 +121,7 @@ function Manager:init()
local event = self:pointToChild(self.target, x, y)
_ENV.multishell.openTab({
path = 'sys/apps/Lua.lua',
args = { event.element, self:dump(self.currentPage) },
args = { event.element },
focused = true })
elseif ch and self.currentPage then
@@ -438,31 +438,6 @@ function Manager:exitPullEvents()
Event.exitPullEvents()
end
function Manager:dump(inEl)
if inEl then
local function clean(el)
local o = el
el = Util.shallowCopy(el)
el.parent = nil
if el.children then
local children = { }
for k,c in pairs(el.children) do
children[k] = clean(c)
end
el.children = children
end
for k,v in pairs(o) do
if type(v) == 'table' and v.UIElement then
el[k] = nil
end
end
return el
end
return clean(inEl)
end
end
local UI = Manager()
--[[-- Basic drawable area --]]--