|
|
|
|
@ -129,7 +129,12 @@ function BaseControl:register(name, value)
|
|
|
|
|
error("can't register \""..name.."\" after finalizing")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if type(value) == "function" then
|
|
|
|
|
if type(name) == "table" then
|
|
|
|
|
-- Batch register
|
|
|
|
|
for name, value in pairs(name) do
|
|
|
|
|
self:register(name, value)
|
|
|
|
|
end
|
|
|
|
|
elseif type(value) == "function" then
|
|
|
|
|
if self.local_verbs[name] ~= nil then
|
|
|
|
|
error("\""..name.."\" already registered")
|
|
|
|
|
else
|
|
|
|
|
|