Ignore nil values in the new register() API

This commit is contained in:
Jason Perkins 2012-04-20 18:29:23 -04:00
parent 66585d36ae
commit 10b8b373dd

View File

@ -294,6 +294,10 @@
--
function api.callback(field, value)
-- right now, ignore calls with no value; later might want to
-- return the current baked value
if not value then return end
-- find the right target object for this field
local target
if field.scope == "project" then