I do not know. Is the code that you quoted in the pvpinit function?
Has the GoJS library been loaded only once, and not more than once? It should not be loaded more than once, and also not multiple versions or debug and non-debug.
Could you please confirm that the GoJS library is not loaded more than once?
In the debugger what is the object for which there is no “SubGraphExpanded” property? That error message is correct – there is no “SubGraphExpanded” property in the Diagram class. But there is a “SubGraphExpanded” DiagramEvent that go.GraphObject.make should be recognizing. And I was guessing that the cause for such odd behavior is loading the GoJS library more than once.
you may be right I found a variable that calls go.js file but it is not used anywhere maybe it is because of it.
I have commented this variable. The problem is that this error appear sometimes often and sometimes rarely. i will test again and I get back
Thank you very much for your efforts
SubGraphExpanded: function(e) {
try {
var groups = e.subject;
groups.each(function(g) {
if (g instanceof go.Group) {
pvpDiagram.model.setDataProperty(g.data, ‘SubGraphExpanded’, true);
}
})
} catch (ex) {
var place = "IPRO-CHART: SubGraphExpanded ";
ex.name = place + ex.name;
writeToLog(ex, 0, LOGLEVEL.ERROR);
}
}
you can set in init function this Diagramm Event than should somtimes appear this Error in Firefox
i set the variable SubGraphExpanded on true when you click on the expanded Button in the Group!
and on false when you click on Collapsed button
SubGraphCollapsed: function(e) {
try {
var groups = e.subject;
groups.each(function(g) {
if (g instanceof go.Group) {
pvpDiagram.model.setDataProperty(g.data, ‘SubGraphExpanded’, false);
}
})
} catch (ex) {
var place = "IPRO-CHART: SubGraphCollapsed ";
ex.name = place + ex.name;
writeToLog(ex, 0, LOGLEVEL.ERROR);
I changed the variable name again from SubGraphExpanded to graphExpan. I set only a variable on true or false
pvpDiagram.model.setDataProperty(g.data, ‘graphExpan’, true);
I don’t change anything I just set a variable ( graphExpan ) to true or false at call the SubGraphExpanded or the SubGraphCollapsed DiagrammEvent
I don’t know, the bug appears sometimes you have to try several times
my colleague knows the project more than me. I ask him when he comes back from holiday.
i think we are loading the GoJS library in the first