webmcp
changeset 82:ca44dff90b4e
Fixed ui.anchor
author | bsw |
---|---|
date | Wed Jun 27 19:18:27 2012 +0200 (2012-06-27) |
parents | bfae497543a3 |
children | 6ab448e71d66 |
files | framework/env/trace/_close_section.lua framework/env/trace/_open_section.lua framework/env/ui/anchor.lua |
line diff
1.1 --- a/framework/env/trace/_close_section.lua Wed Jun 27 19:11:18 2012 +0200 1.2 +++ b/framework/env/trace/_close_section.lua Wed Jun 27 19:18:27 2012 +0200 1.3 @@ -4,6 +4,7 @@ 1.4 if not closed_section then 1.5 error("All trace sections have been closed already.") 1.6 end 1.7 + --trace.debug("END " .. extos.monotonic_hires_time() .. " / " .. os.clock()) 1.8 trace._stack[pos] = nil 1.9 return closed_section 1.10 end
2.1 --- a/framework/env/trace/_open_section.lua Wed Jun 27 19:11:18 2012 +0200 2.2 +++ b/framework/env/trace/_open_section.lua Wed Jun 27 19:18:27 2012 +0200 2.3 @@ -2,5 +2,6 @@ 2.4 local node = trace._new_entry(node) 2.5 node.section = true 2.6 table.insert(trace._stack, node) 2.7 + --trace.debug("START " .. extos.monotonic_hires_time() .. " / " .. os.clock()) 2.8 return node 2.9 end
3.1 --- a/framework/env/ui/anchor.lua Wed Jun 27 19:11:18 2012 +0200 3.2 +++ b/framework/env/ui/anchor.lua Wed Jun 27 19:18:27 2012 +0200 3.3 @@ -10,11 +10,11 @@ 3.4 --]]-- 3.5 3.6 function ui.anchor(args) 3.7 - local attr = table.new(attr) 3.8 + local attr = table.new(args.attr) 3.9 attr.name = args.name 3.10 return ui.tag{ 3.11 tag = "a", 3.12 attr = attr, 3.13 - content = content 3.14 + content = args.content 3.15 } 3.16 end