I’ve been developing a project using v1.3.0 go-debug.js
when i upgraded to v1.3.8 go-debug.js everything worked as in v1.3.0
however when switching to go.js (v1.3.0 & v1.3.8) some issues cropped up.
the issues are w/ expanding/collapsing the nodes w/in the tree and using the expand tree button
what could cause this, are there differences between the go and go-debug that would cause this behavior?
below is my expander button code:
$(“TreeExpanderButton”, {
alignment: go.Spot.Bottom, alignmentFocus: go.Spot.Top,
click: function(e,obj){
var node = obj.part;
if (node === null) return;
e.handled = true;
var data = node.data;
var model = myDiagram.model;
myDiagram.startTransaction(“updateEverExpanded”);
if(data.everExpanded == false){
model.setDataProperty(data, “everExpanded”, true);
var children = node.findTreeChildrenNodes;
if(children.count === 0){
obj.visible = false;
}
}else{
model.setDataProperty(data, “everExpanded”, false);
}
node.isTreeExpanded = !node.isTreeExpanded;
myDiagram.commitTransaction(“updateEverExpanded”);
save();
}//end function