Disallow using a string widget type.

This commit is contained in:
Adrian C. (anrxc) 2009-08-05 19:20:32 +02:00
parent 756215f020
commit 22033bae53
1 changed files with 0 additions and 5 deletions

View File

@ -110,11 +110,6 @@ function register(widget, wtype, format, timer, field, padd)
reg.timer = 1 reg.timer = 1
end end
-- Allow using a string widget type
if type(reg.type) == "string" then
reg.type = widgets[reg.type]
end
-- Register reg object -- Register reg object
regregister(reg) regregister(reg)