2,875
edits
(Issue finally found...) |
No edit summary |
||
Line 477: | Line 477: | ||
frame.args[2] or '', | frame.args[2] or '', | ||
frame.args[3] or '') | frame.args[3] or '') | ||
end | |||
function p.addOrUpdate(tbl, key, func) | |||
local val = tbl[key] | |||
if val ~= nil then | |||
tbl[key] = func(val) | |||
else | |||
tbl[key] = func(nil) | |||
end | |||
return tbl[key] | |||
end | end | ||
return p | return p |
edits