View Single Post
02-24-13, 02:53 AM   #10
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
Just incase you missed it ... CopyTable is a global function since quite some time now

Lua Code:
  1. function CopyTable(settings)
  2.     local copy = {};
  3.     for k, v in pairs(settings) do
  4.         if ( type(v) == "table" ) then
  5.             copy[k] = CopyTable(v);
  6.         else
  7.             copy[k] = v;
  8.         end
  9.     end
  10.     return copy;
  11. end

http://wowprogramming.com/utils/xmlb...L/UIParent.lua
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote