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:
"min"==Editor.currentTheme};var R=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(l){l=R.apply(this,arguments);var B=this.editorUi,N=B.editor.graph;if(N.isEnabled()){var Z=B.getCurrentFile();null!=Z&&Z.isAutosaveOptional()&&l.appendChild(this.createOption(mxResources.get("autosave"),function(){return B.editor.autosave},function(Y){B.editor.setAutosave(Y);B.editor.autosave&&Z.isModified()&&Z.fileChanged()},{install:function(Y){this.listener=function(){Y(B.editor.autosave)};
B.editor.addListener("autosaveChanged",this.listener)},destroy:function(){B.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&N.isEnabled()&&"undefined"!==typeof MathJax){var U=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return N.mathEnabled},function(Y){B.actions.get("mathematicalTypesetting").funct()},{install:function(Y){this.listener=function(){Y(N.mathEnabled)};B.addListener("mathEnabledChanged",this.listener)},destroy:function(){B.removeListener(this.listener)}});