1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
local m = {} function m:field(source, key, callback) if source.value then self:eachField(source.value, key, callback) end end function m:value(source, callback) if source.value then self:eachValue(source.value, callback) end end return m