libs/uci: support custom initalizers in luci.model.uci.bind
This commit is contained in:
parent
99d425aeed
commit
09fa7f18c9
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,10 @@ function bind.section(self, stype)
|
|||
inst.bind = self
|
||||
inst.stype = stype
|
||||
inst.sid = sid
|
||||
|
||||
if inst._init then
|
||||
inst:_init(sid)
|
||||
end
|
||||
end
|
||||
return x
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue