Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Updating all nodes with shared references

$
0
0

@d.sarmiento wrote:

Hi,
I have several nodes that share a reference to an element in an array (see below). How can I update sharedObj so Node1 and Node2 reflect the changes?

sharedObj={foo: bar}
Node1={name: "One data", data:[sharedObj,other1,other2]}
Node2={name: "Two data", data:[sharedObj,other3,other4]}

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles