Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
[];this.traverse(k,!0,mxUtils.bind(this,function(y,E){var D=null!=E&&this.isTreeEdge(E);D&&l.push(E);y==k||null!=E&&!D||l.push(y);return(null==E||D)&&(y==k||!this.model.isCollapsed(y))}));this.model.setCollapsed(k,c);for(var x=0;x<l.length;x++)this.model.setVisible(l[x],!c)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(c){return!this.isEdgeIgnored(c)};Graph.prototype.getTreeEdges=function(c,k,l,x,y,E){return this.model.filterCells(this.getEdges(c,k,l,x,y,E),mxUtils.bind(this,
function(D){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function c(F){return n.isVertex(F)&&l(F)}function k(F){var O=!1;null!=F&&(O="1"==