webmcp

diff framework/env/ui_deprecated/_stringify_table.lua @ 0:9fdfb27f8e67

Version 1.0.0
author jbe/bsw
date Sun Oct 25 12:00:00 2009 +0100 (2009-10-25)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/framework/env/ui_deprecated/_stringify_table.lua	Sun Oct 25 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,11 @@
     1.4 +function ui_deprecated._stringify_table(table)
     1.5 +  if not table then
     1.6 +    return ''
     1.7 +  end
     1.8 +  local string = ''
     1.9 +  for key, value in pairs(table) do
    1.10 +    string = string .. ' ' .. key .. '="' .. value ..'"'
    1.11 +  end
    1.12 +  return string
    1.13 +end
    1.14 +

Impressum / About Us