I am using the pipes example. I insert a LinkDrawn listener:
myDiagram.addDiagramListener("Modified", function(e) {
var button = document.getElementById("SaveButton");
if (button) button.disabled = !myDiagram.isModified;
var idx = document.title.indexOf("*");
if (myDiagram.isModified) {
if (idx < 0) document.title += "*";
} else {
if (idx >= 0) document.title = document.title.substr(0, idx);
}
});
myDiagram.addDiagramListener("LinkDrawn", function(e){
console.log(e);
});
myDiagram.addDiagramListener("LinkRelinked", function(e){
console.log(e);
});
expecting that when two pipes are linked the event will fire and I can then update other pertinent data. No go. Bug or is this a result of the insertLink not calling the LinkDrawn event by design?
What is the best way around this?
Thanks!