Mercurial > wow > reaction
diff ReAction_Bar.lua @ 27:f1e838841ce1
Rearranged file tree, removed unused code for 1.x start-point
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Tue, 11 Mar 2008 21:39:34 +0000 |
parents | bf997ea151ca |
children |
line wrap: on
line diff
--- a/ReAction_Bar.lua Fri Mar 07 22:20:30 2008 +0000 +++ b/ReAction_Bar.lua Tue Mar 11 21:39:34 2008 +0000 @@ -58,6 +58,19 @@ local Bar = BarClass.prototype module.BarClass = BarClass +-- +-- local utility +-- +local function deepCopy(x) + if type(x) ~= "table" then + return x + end + local r = {} + for k,v in pairs(x) do + r[k] = deepCopy(v) + end + return r +end -- -- Bar module implementation