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

Collection was modified during iteration: Set(Part)#453

$
0
0

@ahlam wrote:

Hi ,
I’m trying to prevent the drop of some objects relaying on their category , i’ve done this :

 `

myDiagram.addDiagramListener(“ExternalObjectsDropped”, (e) => {
if (myVar != null) {
clearInterval(myVar);
}

e.subject.each(function (node) {
    if (node.data.category === "sink" || node.data.category === "separator") {
        myDiagram.commandHandler.deleteSelection();

    }
})

`
but it didnt work for me , it shows this error :

image

please help me !

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles