Hi,
Would like to know why when we have a double click event on the diagram, it triggers correctly, but it is triggering twice every time it does.
Sample code as below:
function DoubleClick() {
//triggering twice
var diagramObj = $("#DiagramControlDiagram").data("ejDiagram");
positioned();
var idNode = diagramObj.selectionList[0];
console.log(idNode);
var params = "{'id':'" + idNode.name + "'}";
$.ajax({
type: "POST",
url: "pageViewer.aspx/GetNodeData",
data: params,
contentType: "application/json;charset=utf-8",
dataType: "json",
success: onSucess,
error: onError
});
}
//success
function onSucess(result) {
//Success event that is also triggering twice
}