widgets: set default address to "auto" and use id automatically
This commit is contained in:
parent
c291d3e9a2
commit
4295483fad
5 changed files with 10 additions and 12 deletions
|
|
@ -67,10 +67,6 @@ var Parser = class Parser {
|
|||
props.id = id
|
||||
}
|
||||
|
||||
// Generate default address (also handled in editor/edit-field)
|
||||
props.address = props.address === 'auto' ? '/' + props.id : props.address
|
||||
|
||||
|
||||
// Remove props that don't apply
|
||||
for (let j in props) {
|
||||
if (defaults[j] === undefined || j[0] === '_') delete props[j]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue