Skip to content

Commit

Permalink
feat: can set fields on any node via virtual fields property
Browse files Browse the repository at this point in the history
  • Loading branch information
georgejecook committed May 12, 2021
1 parent 11a84d6 commit c45e1c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/source/mx/BaseObservable.bs
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,9 @@ namespace mx
bindingValue = value
end if


if node.doesExist(binding[2])
if binding[2] = "fields"
node.setFields(bindingValue)
else if node.doesExist(binding[2])
node[binding[2]] = bindingValue
else
'attempt to call func
Expand Down

0 comments on commit c45e1c5

Please sign in to comment.